mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-14 12:04:31 +02:00
mode-button-scheduler: literally log action
This commit is contained in:
parent
5f341b1776
commit
6ee7232408
1 changed files with 4 additions and 3 deletions
|
@ -7,10 +7,11 @@
|
|||
:global "mode-button";
|
||||
|
||||
:local count ($"mode-button"->"count");
|
||||
:local action [ :parse ($"mode-button"->[ :tostr $count ]) ];
|
||||
:local action ($"mode-button"->[ :tostr $count ]);
|
||||
:local parsed [ :parse $action ];
|
||||
|
||||
: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: " . $action);
|
||||
$parsed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue