Commit 7a969b56 authored by galjonsfigur's avatar galjonsfigur Committed by Marcel Stör
Browse files

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

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