Je suis à nouveau en train de refactoriser ma procédure de boot, car j'ai toujours des problèmes de mémoire. Cela ne fonctionne pas encore :-(
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
-- Scripts à charger après le boot pour démarrer son projet
|
||||
|
||||
print("\n boot2.lua zf200106.1817 \n")
|
||||
print("\n boot2.lua zf200106.2331 \n")
|
||||
|
||||
function boot2()
|
||||
print("boot2 starting...")
|
||||
second_chance=nil initz=nil boot=nil
|
||||
boot2_tmr=nil boot2_tmr1=nil boot2_go=nil
|
||||
print(node.heap()) collectgarbage() print(node.heap())
|
||||
|
||||
@@ -16,20 +15,7 @@ function boot2()
|
||||
|
||||
verbose = true
|
||||
|
||||
boot2_tmr2=tmr.create()
|
||||
boot2_tmr2:alarm(4*1000, tmr.ALARM_SINGLE, function()
|
||||
print("BOOOOUM, y'a plus de boot2 !")
|
||||
boot2=nil boot2_tmr2=nil
|
||||
print(node.heap()) collectgarbage() print(node.heap())
|
||||
|
||||
--tmr.create():alarm(7*1000, tmr.ALARM_SINGLE, function()
|
||||
-- print("MUOOOOB !")
|
||||
-- collectgarbage()
|
||||
-- print(node.heap())
|
||||
--f= "web_ide2.lua" if file.exists(f) then dofile(f) end
|
||||
-- f=nil
|
||||
--end)
|
||||
end)
|
||||
boot2=nil
|
||||
end
|
||||
|
||||
boot2_tmr1=tmr.create()
|
||||
|
||||
Reference in New Issue
Block a user