Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
7a969b56
Commit
7a969b56
authored
Jun 01, 2019
by
galjonsfigur
Committed by
Marcel Stör
Jun 01, 2019
Browse files
Modify HTTP OTA to not erase saved credentials (#2758) (#2778)
parent
a9256aec
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_examples/lfs/HTTP_OTA.lua
View file @
7a969b56
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment