diff --git a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp index 7a9e9e0aa5..1f385b224e 100644 --- a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp +++ b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp @@ -47,7 +47,7 @@ void loop(void) { static uint16_t counter; static uint32_t last_t, last_print, last_compass; - uint32_t now = hal.scheduler->micros(); + uint32_t now = AP_HAL::micros(); float heading = 0; if (last_t == 0) {