mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 03:34:07 +08:00
gnss(septentrio): fix error on driver start with same device paths
This fixes an incorrect check of the device paths during instantiation of the Septentrio driver that caused the driver to start and not print an error message.
This commit is contained in:
parent
24fdb3c359
commit
ade00d0488
@ -432,7 +432,7 @@ SeptentrioDriver *SeptentrioDriver::instantiate(int argc, char *argv[], Instance
|
||||
}
|
||||
|
||||
if (arguments.device_path_main && arguments.device_path_secondary
|
||||
&& arguments.device_path_main == arguments.device_path_secondary) {
|
||||
&& strcmp(arguments.device_path_main, arguments.device_path_secondary) == 0) {
|
||||
mavlink_log_critical(&k_mavlink_log_pub, "Septentrio: Device paths must be different");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user