From 79b44b2517ccee5ec2c46bf7d8a8d2d89ebdd60d Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 5 Jul 2022 04:08:57 +0100 Subject: [PATCH] SITL: params always use set method --- libraries/SITL/SITL.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SITL/SITL.h b/libraries/SITL/SITL.h index a4b924f7d0..1fb9269342 100644 --- a/libraries/SITL/SITL.h +++ b/libraries/SITL/SITL.h @@ -387,10 +387,10 @@ public: return (AP_HAL::Util::safety_state)_safety_switch_state.get(); } void force_safety_off() { - _safety_switch_state = (uint8_t)AP_HAL::Util::SAFETY_ARMED; + _safety_switch_state.set((uint8_t)AP_HAL::Util::SAFETY_ARMED); } bool force_safety_on() { - _safety_switch_state = (uint8_t)AP_HAL::Util::SAFETY_DISARMED; + _safety_switch_state.set((uint8_t)AP_HAL::Util::SAFETY_DISARMED); return true; }