From 19174f4d87799ccb5a0661c9f7755d9a4777459f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 3 Jul 2023 08:10:45 +1000 Subject: [PATCH] AP_Scripting: fixed use of QUIK_ENABLE in VTOL-quicktune this was lost when the cached access was added --- libraries/AP_Scripting/applets/VTOL-quicktune.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Scripting/applets/VTOL-quicktune.lua b/libraries/AP_Scripting/applets/VTOL-quicktune.lua index 55812d0f90..42f5be598f 100644 --- a/libraries/AP_Scripting/applets/VTOL-quicktune.lua +++ b/libraries/AP_Scripting/applets/VTOL-quicktune.lua @@ -484,6 +484,9 @@ end -- main update function local last_warning = get_time() function update() + if QUIK_ENABLE:get() < 1 then + return + end if have_pilot_input() then last_pilot_input = get_time() end