esp8266: Only execute main.py if in friendly REPL mode.
This commit is contained in:
parent
e1782042f5
commit
4f29b315a6
@ -65,7 +65,9 @@ STATIC void mp_reset(void) {
|
||||
#if MICROPY_MODULE_FROZEN
|
||||
pyexec_frozen_module("_boot.py");
|
||||
pyexec_file("boot.py");
|
||||
pyexec_file("main.py");
|
||||
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
|
||||
pyexec_file("main.py");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user