AP_NavEKF2: do not pass GPS into Log_Write_GPS; it uses singleton

This commit is contained in:
Peter Barker 2018-04-11 22:17:19 +10:00 committed by Randy Mackay
parent e73a02343a
commit 578facc9ad

View File

@ -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) {