Bien refactorisé ma procédure de boot, mais cela n'est pas encore terminé

This commit is contained in:
Christian Zufferey
2020-01-07 15:31:29 +01:00
parent 5716fbd93f
commit f4f4228827
3 changed files with 45 additions and 34 deletions

View File

@@ -1,8 +1,17 @@
-- Scripts à charger après le boot pour démarrer le core system
print("\n boot.lua zf200106.2313 \n")
print("\n boot.lua zf200107.1443 \n")
function boot()
initalarme2=tmr.create()
initalarme2:alarm(30*1000, tmr.ALARM_SINGLE, function()
f= "boot2.lua" if file.exists(f) then dofile(f) end
end)
if zswitch ~= nill then
gpio.trig(zswitch, "none") hvbouton=nil zswitch=nil reset_reason=nil
end