commit | 4f29b315a6900445d2139652914f81168763816f | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Mon Mar 06 17:41:34 2017 +1100 |
committer | Damien George <damien.p.george@gmail.com> | Tue Mar 14 13:04:03 2017 +1100 |
tree | 376b2179a532a9ce4e649b8dc9d40e0fb11aee7c | |
parent | e1782042f5f8281c940d697d8aa08e23a35916ae [diff] [blame] |
esp8266: Only execute main.py if in friendly REPL mode.
diff --git a/esp8266/main.c b/esp8266/main.c index fd07efc..888e589 100644 --- a/esp8266/main.c +++ b/esp8266/main.c
@@ -65,7 +65,9 @@ #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 }