Flash tool works with Nodemcu 2.2
This commit is contained in:
parent
18da5e7e3b
commit
f67f53d223
@ -26,7 +26,8 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
echo "Upgrading $IP"
|
||||
|
||||
echo "stopWordclock()" | nc $IP 80
|
||||
echo "stopWordclock()" > /tmp/wordClockCMD.txt
|
||||
$FLASHTOOL -f /tmp/wordClockCMD.txt -t $IP -v
|
||||
|
||||
FILES="displayword.lua main.lua timecore.lua webpage.html webserver.lua wordclock.lua init.lua"
|
||||
|
||||
|
@ -112,7 +112,7 @@ def main(nodeip, luafile, volatile=None):
|
||||
sys.exit(4)
|
||||
|
||||
# Check if the file exists:
|
||||
if (not sendRecv(s, "=file.open(\"" + luafile + "\")", "true")):
|
||||
if (not sendRecv(s, "=file.exists(\"" + luafile + "\")", "true")):
|
||||
print("Cannot send " + luafile + " to the ESP")
|
||||
sys.exit(4)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user