From e6284fe879dac49bda161aff399d0f269d4b5f9e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 1 Sep 2023 11:07:26 +1000 Subject: [PATCH] AP_HAL: correct compilation for SimOnHardware --- libraries/AP_HAL/SIMState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL/SIMState.cpp b/libraries/AP_HAL/SIMState.cpp index edddcd7c98..ba56236210 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