From 30969eb10c58979f7742758914747a37de17d1be Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 10 Jun 2015 13:20:13 +0200 Subject: [PATCH] Navigator: Use correct open call --- src/modules/navigator/navigator_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index c104f8162c..28bd482cc2 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -257,7 +257,7 @@ Navigator::task_main_trampoline(int argc, char *argv[]) void Navigator::task_main() { - _mavlink_fd = open(MAVLINK_LOG_DEVICE, 0); + _mavlink_fd = px4_open(MAVLINK_LOG_DEVICE, 0); _geofence.setMavlinkFd(_mavlink_fd); /* Try to load the geofence: @@ -346,7 +346,7 @@ Navigator::task_main() if (_mavlink_fd < 0 && hrt_absolute_time() > mavlink_open_time) { /* try to reopen the mavlink log device with specified interval */ mavlink_open_time = hrt_abstime() + mavlink_open_interval; - _mavlink_fd = open(MAVLINK_LOG_DEVICE, 0); + _mavlink_fd = px4_open(MAVLINK_LOG_DEVICE, 0); } static bool have_geofence_position_data = false;