From 7bb239637e08014568e5f43871c443e5032cfc5e Mon Sep 17 00:00:00 2001 From: Thomas Frans Date: Mon, 17 Jun 2024 11:01:08 +0200 Subject: [PATCH] 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. --- src/drivers/gnss/septentrio/septentrio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/gnss/septentrio/septentrio.cpp b/src/drivers/gnss/septentrio/septentrio.cpp index 838caea294..cc6f5b8283 100644 --- a/src/drivers/gnss/septentrio/septentrio.cpp +++ b/src/drivers/gnss/septentrio/septentrio.cpp @@ -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; }