diff options
-rw-r--r-- | mode-button-event | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mode-button-event b/mode-button-event index 4768e09..0e1ac0d 100644 --- a/mode-button-event +++ b/mode-button-event @@ -7,15 +7,17 @@ :global ModeButton; +:global LogPrintExit; + :set ($ModeButton->"count") ($ModeButton->"count" + 1); :local Scheduler [ / system scheduler find where name="mode-button-scheduler" ]; :if ([ :len $Scheduler ] = 0) do={ - :log info "Creating mode-button scheduler, counting presses..."; + $LogPrintExit info ("Creating mode-button scheduler, counting presses...") false; / system scheduler add name="mode-button-scheduler" \ on-event="/ system script run mode-button-scheduler;" interval=3s; } else={ - :log debug "Updating mode-button-scheduler..."; + $LogPrintExit debug ("Updating mode-button-scheduler...") false; / system scheduler set $Scheduler start-time=[ /system clock get time ]; } |