mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-08 09:31:35 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user