diff options
Diffstat (limited to 'ports/esp8266/main.c')
| -rw-r--r-- | ports/esp8266/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp8266/main.c b/ports/esp8266/main.c index 11ac5b63f..7c940ac2a 100644 --- a/ports/esp8266/main.c +++ b/ports/esp8266/main.c @@ -83,8 +83,8 @@ STATIC void mp_reset(void) { #if MICROPY_MODULE_FROZEN pyexec_frozen_module("_boot.py", false); - pyexec_file_if_exists("boot.py"); - if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) { + int ret = pyexec_file_if_exists("boot.py"); + if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL && ret != 0) { pyexec_file_if_exists("main.py"); } #endif |
