Commit bc1dd37a authored by Alistair Witt's avatar Alistair Witt Committed by Gregor Hartmann
Browse files

Replaced obsolete static timers in lfs_fragments.lua (nodemcu #2764)

parent 036bff56
...@@ -56,8 +56,11 @@ if node.flashindex() == nil then ...@@ -56,8 +56,11 @@ if node.flashindex() == nil then
node.flashreload('flash.img') node.flashreload('flash.img')
end end
tmr.alarm(0, 1000, tmr.ALARM_SINGLE, local initTimer = tmr.create()
function() initTimer:register(1000, tmr.ALARM_SINGLE,
local fi=node.flashindex; return pcall(fi and fi'_init') function()
end) local fi=node.flashindex; return pcall(fi and fi'_init')
end
)
initTimer:start()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment