Skip to content

Commit 4f29b31

Browse files
committed
esp8266: Only execute main.py if in friendly REPL mode.
1 parent e178204 commit 4f29b31

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

esp8266/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ STATIC void mp_reset(void) {
6565
#if MICROPY_MODULE_FROZEN
6666
pyexec_frozen_module("_boot.py");
6767
pyexec_file("boot.py");
68-
pyexec_file("main.py");
68+
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
69+
pyexec_file("main.py");
70+
}
6971
#endif
7072
}
7173

0 commit comments

Comments
 (0)