diff --git a/libraries/AP_HAL/SIMState.cpp b/libraries/AP_HAL/SIMState.cpp index edddcd7c983dc..ba562362105bc 100644 --- a/libraries/AP_HAL/SIMState.cpp +++ b/libraries/AP_HAL/SIMState.cpp @@ -232,8 +232,8 @@ void SIMState::fdm_input_local(void) vectornav->update(); } - if (microstrain != nullptr) { - microstrain->update(); + if (microstrain5 != nullptr) { + microstrain5->update(); } #if HAL_SIM_AIS_ENABLED