nodemcu while loop fails
Posted: Sun Jan 03, 2016 3:27 pm
I was trying to get a delay in a program. The program kept crashing, so I reduced it to a minimal while loop and just tested that. It crashes every time.
I am running ESP8266 LuaLoader 0.87
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4
The "Test.lua" code:============================
print("begin test")
DelayEnd = 0
while (DelayEnd == 0) do end
print("end of test")
The output: ===================
dofile(Test.lua) Sunday, January 03, 2016 12:24:33
dofile("Test.lua")
begin test
?©Fê¦ôž!9Œ¦HŒbê
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4
lua: cannot open init.lua
>
Hard Restart Sunday, January 03, 2016 12:24:38
Anybody have an idea what the problem is?
I am running ESP8266 LuaLoader 0.87
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4
The "Test.lua" code:============================
print("begin test")
DelayEnd = 0
while (DelayEnd == 0) do end
print("end of test")
The output: ===================
dofile(Test.lua) Sunday, January 03, 2016 12:24:33
dofile("Test.lua")
begin test
?©Fê¦ôž!9Œ¦HŒbê
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4
lua: cannot open init.lua
>
Hard Restart Sunday, January 03, 2016 12:24:38
Anybody have an idea what the problem is?