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

clarify README regarding scrolling

also make sure to `return false` from the scroll_text function if the
scroll timer was last set to a value below the allowed minimum (which
would mean the user/program intended to shut it off by setting it to 0,
or the stepper was called manually, implying no timer)
This commit is contained in:
Vanessa Dannenberg
2018-08-17 10:07:34 -04:00
parent 81a06dc054
commit 922efe9210
2 changed files with 4 additions and 3 deletions

View File

@ -77,6 +77,7 @@ led_marquee.scroll_text = function(pos, elapsed)
led_marquee.display_msg(pos, channel, msg.." ")
if string.byte(string.sub(msg,1,1)) < 32 then index = index + 1 end
meta:set_int("index", index + 1)
if not elapsed or elapsed < 0.5 then return false end
return true
end