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:
Thomas Frans
2024-07-03 11:21:34 -04:00
committed by Daniel Agar
parent 522a25a410
commit 7bb239637e
+1 -1
View File
@@ -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;
}