Skip to content
Snippets Groups Projects
Commit 4f29b315 authored by Damien George's avatar Damien George
Browse files

esp8266: Only execute main.py if in friendly REPL mode.

parent e1782042
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,9 @@ STATIC void mp_reset(void) { ...@@ -65,7 +65,9 @@ STATIC void mp_reset(void) {
#if MICROPY_MODULE_FROZEN #if MICROPY_MODULE_FROZEN
pyexec_frozen_module("_boot.py"); pyexec_frozen_module("_boot.py");
pyexec_file("boot.py"); pyexec_file("boot.py");
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
pyexec_file("main.py"); pyexec_file("main.py");
}
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment