diff options
Diffstat (limited to 'esp8266')
-rw-r--r-- | esp8266/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/esp8266/main.c b/esp8266/main.c index fd07efcbf2..888e589704 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 } |