Copter: use compass singleton for logging

This commit is contained in:
Peter Barker 2018-06-25 21:58:43 +10:00 committed by Francisco Ferreira
parent c0fac91110
commit 8bc96a2e13
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ void Copter::update_batt_compass(void)
compass.read();
// log compass information
if (should_log(MASK_LOG_COMPASS) && !ahrs.have_ekf_logging()) {
DataFlash.Log_Write_Compass(compass);
DataFlash.Log_Write_Compass();
}
}
}