Rover: use compass singleton for logging

This commit is contained in:
Peter Barker 2018-06-25 21:57:33 +10:00 committed by Francisco Ferreira
parent 4e0c6b873f
commit ca264b1932

View File

@ -197,7 +197,7 @@ void Rover::update_compass(void)
ahrs.set_compass(&compass); ahrs.set_compass(&compass);
// update offsets // update offsets
if (should_log(MASK_LOG_COMPASS)) { if (should_log(MASK_LOG_COMPASS)) {
DataFlash.Log_Write_Compass(compass); DataFlash.Log_Write_Compass();
} }
} }
} }