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:
@@ -32,7 +32,7 @@ int main(int argc, char **argv) {
|
||||
std::unique_ptr<ScoutMiniOmniRobot> scout;
|
||||
|
||||
ProtocolDectctor detector;
|
||||
detector.Connect("can0");
|
||||
detector.Connect(device_name);
|
||||
auto proto = detector.DetectProtocolVersion(5);
|
||||
if (proto == ProtocolVersion::AGX_V1) {
|
||||
std::cout << "Detected protocol: AGX_V1" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user