mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
mode-button-scheduler: sync with sms-action
This commit is contained in:
parent
95794d0367
commit
bd46c2d63b
1 changed files with 4 additions and 3 deletions
|
@ -7,11 +7,12 @@
|
|||
:global "mode-button";
|
||||
|
||||
:local count ($"mode-button"->"count");
|
||||
:local action ($"mode-button"->[ :tostr $count ]);
|
||||
:local parsed [ :parse $action ];
|
||||
:local code ($"mode-button"->[ :tostr $count ]);
|
||||
:local parsed [ :parse $code ];
|
||||
|
||||
:set ($"mode-button"->"count") 0;
|
||||
/ system scheduler remove mode-button-scheduler;
|
||||
|
||||
:log info ("Acting on " . $count . " mode-button presses: " . $action);
|
||||
:log info ("Acting on " . $count . " mode-button presses: " . $code);
|
||||
:delay 1s;
|
||||
$parsed;
|
||||
|
|
Loading…
Reference in a new issue