AP_Scripting: fixed use of QUIK_ENABLE in VTOL-quicktune

this was lost when the cached access was added
This commit is contained in:
Andrew Tridgell 2023-07-03 08:10:45 +10:00 committed by Peter Barker
parent ad7274b0bf
commit 19174f4d87
1 changed files with 3 additions and 0 deletions

View File

@ -484,6 +484,9 @@ end
-- main update function -- main update function
local last_warning = get_time() local last_warning = get_time()
function update() function update()
if QUIK_ENABLE:get() < 1 then
return
end
if have_pilot_input() then if have_pilot_input() then
last_pilot_input = get_time() last_pilot_input = get_time()
end end