Start/stop/reset built-in timers with Lua script
Posted: Sun Dec 18, 2022 11:49 am
Hi together,
is there a way to start/stop/reset the built-in timers from a (telemetry) Lua script? I do not have any buttons left to do so so I want to use Enter and Exit short-press within the telemetry screen, catched with key event constants, to start-stop (Exit button) and reset (Enter button) Timer 1:
if event == EVT_EXIT_BREAK then
-- Start/stop timer
-- HOW DO I START/STOP TIMER 1?
end
if event == EVT_ENTER_BREAK then
-- Reset timer
-- HOW DO I RESET TIMER 1?
end
Is that possible? I couldn't find anything.
Thanks,
Kriz
is there a way to start/stop/reset the built-in timers from a (telemetry) Lua script? I do not have any buttons left to do so so I want to use Enter and Exit short-press within the telemetry screen, catched with key event constants, to start-stop (Exit button) and reset (Enter button) Timer 1:
if event == EVT_EXIT_BREAK then
-- Start/stop timer
-- HOW DO I START/STOP TIMER 1?
end
if event == EVT_ENTER_BREAK then
-- Reset timer
-- HOW DO I RESET TIMER 1?
end
Is that possible? I couldn't find anything.
Thanks,
Kriz