From 7f7631fab7b0a46022e0fde16185499bd373d996 Mon Sep 17 00:00:00 2001 From: Eric Katzfey Date: Tue, 26 Mar 2024 18:33:14 -0700 Subject: [PATCH] Changed second access function in GPS to px4_access --- src/drivers/gps/gps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp index e7b72038c7..f7257fba5a 100644 --- a/src/drivers/gps/gps.cpp +++ b/src/drivers/gps/gps.cpp @@ -1551,7 +1551,7 @@ GPS *GPS::instantiate(int argc, char *argv[], Instance instance) } } } else { // secondary instance - if (device_name_secondary && (access(device_name_secondary, R_OK|W_OK) == 0)) { + if (device_name_secondary && (px4_access(device_name_secondary, R_OK|W_OK) == 0)) { gps = new GPS(device_name_secondary, mode, interface_secondary, instance, baudrate_secondary); } else {