diff options
author | Christian Hesse <mail@eworm.de> | 2024-11-15 23:01:22 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-11-15 23:01:22 +0100 |
commit | 1beda3aa7c08cbe0e06aff164fabfa86e8b6353d (patch) | |
tree | 06f7480699f396606e1dd12e77d63f948599e3fd /mode-button.rsc | |
parent | 5b09469cc6c707b473b74687951b2d1e6468928a (diff) |
mode-button: fix the caller parameter to $LogPrint
This is inside a function, so use just $0 here.
Diffstat (limited to 'mode-button.rsc')
-rw-r--r-- | mode-button.rsc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mode-button.rsc b/mode-button.rsc index 7908a7f..84eb8ea 100644 --- a/mode-button.rsc +++ b/mode-button.rsc @@ -52,7 +52,7 @@ :if ([ :len $Code ] > 0) 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={ $LEDInvert; @@ -66,10 +66,10 @@ [ :parse $Code ]; } 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={ - $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" \ |