diff --git a/libraries/AP_Compass/AP_Compass_AK8963.cpp b/libraries/AP_Compass/AP_Compass_AK8963.cpp index 613917a92b..fce8a11363 100644 --- a/libraries/AP_Compass/AP_Compass_AK8963.cpp +++ b/libraries/AP_Compass/AP_Compass_AK8963.cpp @@ -91,7 +91,7 @@ AP_Compass_Backend *AP_Compass_AK8963::probe_mpu9250(AP_HAL::OwnPtr dev AP_Compass_Backend *AP_Compass_HMC5843::probe_mpu6000(enum Rotation rotation) { - AP_InertialSensor &ins = *AP_InertialSensor::get_instance(); + AP_InertialSensor &ins = *AP_InertialSensor::get_singleton(); AP_HMC5843_BusDriver *bus = new AP_HMC5843_BusDriver_Auxiliary(ins, HAL_INS_MPU60XX_SPI,