From ade00d048872fc095ad0cc68035c99206cffb2e9 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; }