1
0
mirror of https://github.com/mt-mods/led_marquee.git synced 2025-06-29 23:00:56 +02:00

drop support for "off_multi" (just use "clear")

renamed "allon_multi" to "allon"
This commit is contained in:
Vanessa Dannenberg
2018-08-17 17:13:34 -04:00
parent c703dbfa74
commit 65a22e1c8e
2 changed files with 4 additions and 4 deletions

View File

@ -196,13 +196,13 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
if setchan ~= channel then return end
if msg and msg ~= "" and type(msg) == "string" then
if string.len(msg) > 1 then
if msg == "off_multi" or msg == "clear" then
if msg == "clear" then
led_marquee.set_timer(pos, 0)
msg = string.rep(" ", 1024)
meta:set_string("last_msg", msg)
led_marquee.display_msg(pos, channel, msg)
meta:set_int("index", 1)
elseif msg == "allon_multi" then
elseif msg == "allon" then
led_marquee.set_timer(pos, 0)
msg = string.rep(string.char(144), 1024)
meta:set_string("last_msg", msg)