mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-21 16:39:32 +00:00
mode-button: use $ExitOnError
This commit is contained in:
parent
80746d4dad
commit
3baf0bd060
1 changed files with 2 additions and 2 deletions
|
|
@ -82,7 +82,7 @@
|
|||
$LogPrint info $FuncName ("No action defined for " . $Count . " mode-button presses.");
|
||||
}
|
||||
} do={
|
||||
:global ExitError; $ExitError false $0 $Err;
|
||||
:global ExitOnError; $ExitOnError $0 $Err;
|
||||
} }
|
||||
/system/scheduler/add name="_ModeButtonScheduler" \
|
||||
on-event=":global ModeButtonScheduler; \$ModeButtonScheduler;" interval=3s;
|
||||
|
|
@ -91,5 +91,5 @@
|
|||
/system/scheduler/set $Scheduler start-time=[ /system/clock/get time ];
|
||||
}
|
||||
} do={
|
||||
:global ExitError; $ExitError false [ :jobname ] $Err;
|
||||
:global ExitOnError; $ExitOnError [ :jobname ] $Err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue