From 578facc9adf9e0717261ab931e3f1216682f5e08 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 11 Apr 2018 22:17:19 +1000 Subject: [PATCH] AP_NavEKF2: do not pass GPS into Log_Write_GPS; it uses singleton --- libraries/AP_NavEKF2/AP_NavEKF2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF2/AP_NavEKF2.cpp b/libraries/AP_NavEKF2/AP_NavEKF2.cpp index 0f89eb3d06..7d27c0e289 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2.cpp @@ -575,7 +575,7 @@ void NavEKF2::check_log_write(void) logging.log_compass = false; } if (logging.log_gps) { - DataFlash_Class::instance()->Log_Write_GPS(AP::gps(), AP::gps().primary_sensor(), imuSampleTime_us); + DataFlash_Class::instance()->Log_Write_GPS(AP::gps().primary_sensor(), imuSampleTime_us); logging.log_gps = false; } if (logging.log_baro) {