Modify HTTP OTA to not erase saved credentials (#2758) (#2778)

This commit is contained in:
galjonsfigur 2019-06-01 18:07:40 +02:00 committed by Marcel Stör
parent a9256aec8b
commit 7a969b5651
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ finalise = function(sck)
sck:close() sck:close()
local s = file.stat(image) local s = file.stat(image)
if (s and size == s.size) then if (s and size == s.size) then
wifi.setmode(wifi.NULLMODE) wifi.setmode(wifi.NULLMODE, false)
collectgarbage();collectgarbage() collectgarbage();collectgarbage()
-- run as separate task to maximise RAM available -- run as separate task to maximise RAM available
node.task.post(function() node.flashreload(image) end) node.task.post(function() node.flashreload(image) end)