Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Santiago Ignacio Hitta Monteverde
firmware
Commits
680bbb16
Commit
680bbb16
authored
Jun 11, 2019
by
Sofia Llavayol
Browse files
do not load main when runonce setup
parent
7171ca0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/autorun.lua
View file @
680bbb16
...
...
@@ -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
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