mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-23 01:58:40 +02:00
mode-button: fix the caller parameter to $LogPrint
This is inside a function, so use just $0 here.
This commit is contained in:
parent
5b09469cc6
commit
1beda3aa7c
1 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
:if ([ :len $Code ] > 0) do={
|
:if ([ :len $Code ] > 0) do={
|
||||||
:if ([ $ValidateSyntax $Code ] = true) do={
|
:if ([ $ValidateSyntax $Code ] = true) do={
|
||||||
$LogPrint info $ScriptName ("Acting on " . $Count . " mode-button presses: " . $Code);
|
$LogPrint info $0 ("Acting on " . $Count . " mode-button presses: " . $Code);
|
||||||
|
|
||||||
:for I from=1 to=$Count do={
|
:for I from=1 to=$Count do={
|
||||||
$LEDInvert;
|
$LEDInvert;
|
||||||
|
@ -66,10 +66,10 @@
|
||||||
|
|
||||||
[ :parse $Code ];
|
[ :parse $Code ];
|
||||||
} else={
|
} else={
|
||||||
$LogPrint warning $ScriptName ("The code for " . $Count . " mode-button presses failed syntax validation!");
|
$LogPrint warning $0 ("The code for " . $Count . " mode-button presses failed syntax validation!");
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
$LogPrint info $ScriptName ("No action defined for " . $Count . " mode-button presses.");
|
$LogPrint info $0 ("No action defined for " . $Count . " mode-button presses.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/system/scheduler/add name="_ModeButtonScheduler" \
|
/system/scheduler/add name="_ModeButtonScheduler" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue