mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
async_port: fixed return error in SetupPort()
This commit is contained in:
@@ -34,9 +34,10 @@ class AsyncPortBase {
|
||||
io_thread_ = std::thread([this]() { io_context_.run(); });
|
||||
return true;
|
||||
}
|
||||
std::cerr << "Failed to setup port, please check if specified port exits "
|
||||
"or if you have proper permissions to access it"
|
||||
<< std::endl;
|
||||
std::cerr
|
||||
<< "[ERROR] Failed to setup port, please check if specified port exits "
|
||||
"or if you have proper permissions to access it"
|
||||
<< std::endl;
|
||||
return false;
|
||||
};
|
||||
virtual void StopService() {}
|
||||
|
||||
@@ -18,8 +18,7 @@
|
||||
namespace westonrobot {
|
||||
class ProtocolDectctor {
|
||||
public:
|
||||
void Connect(std::string can_name);
|
||||
void Connect(std::string uart_name, uint32_t baudrate);
|
||||
bool Connect(std::string can_name);
|
||||
|
||||
ProtocolVersion DetectProtocolVersion(uint32_t timeout_sec);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user