Explorar o código

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

galjonsfigur %!s(int64=5) %!d(string=hai) anos
pai
achega
7a969b5651
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lua_examples/lfs/HTTP_OTA.lua

+ 1 - 1
lua_examples/lfs/HTTP_OTA.lua

@@ -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)