diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-06 17:41:34 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-14 13:04:03 +1100 |
commit | 4f29b315a6900445d2139652914f81168763816f (patch) | |
tree | 376b2179a532a9ce4e649b8dc9d40e0fb11aee7c | |
parent | e1782042f5f8281c940d697d8aa08e23a35916ae (diff) | |
download | micropython-4f29b315a6900445d2139652914f81168763816f.tar.gz micropython-4f29b315a6900445d2139652914f81168763816f.zip |
esp8266: Only execute main.py if in friendly REPL mode.
-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 } |