mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 08:21:36 +08:00
Changed second access function in GPS to px4_access
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user