From 03db080774168d1f26d3abed0257d2752e4ebd6e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 29 Aug 2019 09:29:09 +0200 Subject: mode-button-event: add valid script to scheduler --- mode-button-event | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ]; -- cgit v1.2.3-70-g09d2