diff --git a/esp8266/main.c b/esp8266/main.c index fd07efcbf..888e58970 100644 --- a/esp8266/main.c +++ b/esp8266/main.c @@ -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 }