Commit 680bbb16 authored by Sofia Llavayol's avatar Sofia Llavayol
Browse files

do not load main when runonce setup

parent 7171ca0c
......@@ -21,13 +21,14 @@ if runonce then
dofile(runonce)
else
print ("No run-once program set.")
print("Looking for a main program into nvs('autorun', 'main')")
local main = nvs.read("autorun", "main", nil)
if main then
print("Main program:", main)
dofile(main)
else
print ("No main program set.")
end
end
print("Looking for a main program into nvs('autorun', 'main')")
local main = nvs.read("autorun", "main", nil)
if main then
print("Main program:", main)
dofile(main)
else
print ("No main program set.")
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment