don't start flasher if already started
This commit is contained in:
@@ -7,7 +7,7 @@ local flasher = require("graphics.flasher")
|
|||||||
|
|
||||||
local core = {}
|
local core = {}
|
||||||
|
|
||||||
core.version = "1.0.0"
|
core.version = "1.0.1"
|
||||||
|
|
||||||
core.flasher = flasher
|
core.flasher = flasher
|
||||||
core.events = events
|
core.events = events
|
||||||
|
|||||||
@@ -43,8 +43,10 @@ end
|
|||||||
|
|
||||||
-- start/resume the flasher periodic
|
-- start/resume the flasher periodic
|
||||||
function flasher.run()
|
function flasher.run()
|
||||||
active = true
|
if not active then
|
||||||
callback_250ms()
|
active = true
|
||||||
|
callback_250ms()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- clear all blinking indicators and stop the flasher periodic
|
-- clear all blinking indicators and stop the flasher periodic
|
||||||
|
|||||||
Reference in New Issue
Block a user