aboutsummaryrefslogtreecommitdiffstats
path: root/mode-button-event
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-08-29 09:29:09 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-08-30 11:03:43 +0200
commit03db080774168d1f26d3abed0257d2752e4ebd6e (patch)
treeaaceb1aa85a8c81ecd2e5d00a1c1765a0cd7e08c /mode-button-event
parente479f3b01a0004c4488902f87658573ea9876af9 (diff)
mode-button-event: add valid script to scheduler
Diffstat (limited to 'mode-button-event')
-rw-r--r--mode-button-event3
1 files changed, 2 insertions, 1 deletions
diff --git a/mode-button-event b/mode-button-event
index 82c1f4b..2624383 100644
--- a/mode-button-event
+++ b/mode-button-event
@@ -12,7 +12,8 @@
:if ([ :len $Scheduler ] = 0) do={
:log info "Creating mode-button scheduler, counting presses...";
- / system scheduler add name=mode-button-scheduler on-event=mode-button-scheduler interval=3s;
+ / system scheduler add name="mode-button-scheduler" \
+ on-event="/ system script run mode-button-scheduler;" interval=3s;
} else={
:log debug "Updating mode-button-scheduler...";
/ system scheduler set $Scheduler start-time=[ /system clock get time ];