#108 resolved TCD race condition

This commit is contained in:
Mikayla Fischler
2022-10-21 15:15:56 -04:00
parent 93286174d4
commit d202a49011
4 changed files with 28 additions and 4 deletions

View File

@@ -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