From 9bc837b39c1e3fb9d707c760352dd02696d5a03b 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 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