#108 resolved TCD race condition
This commit is contained in:
@@ -85,7 +85,7 @@ local function waiting(args)
|
||||
if state >= 12 then state = 0 end
|
||||
|
||||
if run_animation then
|
||||
tcd.dispatch(0.5, animate)
|
||||
tcd.dispatch_unique(0.5, animate)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -38,13 +38,14 @@ local function callback_250ms()
|
||||
|
||||
callback_counter = callback_counter + 1
|
||||
|
||||
tcd.dispatch(0.25, callback_250ms)
|
||||
tcd.dispatch_unique(0.25, callback_250ms)
|
||||
end
|
||||
end
|
||||
|
||||
-- start the flasher periodic
|
||||
function flasher.init()
|
||||
active = true
|
||||
callback_counter = 0
|
||||
registry = { {}, {}, {} }
|
||||
callback_250ms()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user