Skip to content

Commit

Permalink
fix test_tc_serialport compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Feb 12, 2025
1 parent 986016c commit 0763469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit-test/util/test_tc_serialport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SerialPortCallback : public TC_SerialPort::RequestCallback
class AsyncSerialPortCallback : public TC_SerialPort::RequestCallback
{
public:
void onSucc(const vector<char> &data)
void onSucc(const vector<char> &&data)
{
std::unique_lock<std::mutex> lock(mtx);
cout << "data: " << string(data.data(), data.size()) << endl;
Expand Down

0 comments on commit 0763469

Please sign in to comment.