From 7a969b56518a83836384dfec0f6ec2eb886d1048 Mon Sep 17 00:00:00 2001 From: galjonsfigur <44552519+galjonsfigur@users.noreply.github.com> Date: Sat, 1 Jun 2019 18:07:40 +0200 Subject: [PATCH] Modify HTTP OTA to not erase saved credentials (#2758) (#2778) --- lua_examples/lfs/HTTP_OTA.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua_examples/lfs/HTTP_OTA.lua b/lua_examples/lfs/HTTP_OTA.lua index 60819d44..42472de5 100644 --- a/lua_examples/lfs/HTTP_OTA.lua +++ b/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)