aboutsummaryrefslogtreecommitdiffstats
path: root/mode-button-event
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-04-03 17:32:19 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-04-03 17:32:19 +0200
commit289fd215c485b714561afdd720772fdd8080a128 (patch)
tree9396459e52123ed687eab7edfdbb86cb754c8e76 /mode-button-event
parent413287586f185dd4ce3a03c53b8fdab76b17b501 (diff)
mode-button-event: use $LogPrintExit
Diffstat (limited to 'mode-button-event')
-rw-r--r--mode-button-event6
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 ];
}