diff --git a/libraries/AP_NavEKF2/AP_NavEKF2.cpp b/libraries/AP_NavEKF2/AP_NavEKF2.cpp index 7d27c0e289..e47fa54d4e 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2.cpp @@ -571,7 +571,7 @@ void NavEKF2::check_log_write(void) return; } if (logging.log_compass) { - DataFlash_Class::instance()->Log_Write_Compass(*_ahrs->get_compass(), imuSampleTime_us); + DataFlash_Class::instance()->Log_Write_Compass(imuSampleTime_us); logging.log_compass = false; } if (logging.log_gps) {