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:
1
init.lua
1
init.lua
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user