summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-06 17:41:34 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-14 13:04:03 +1100
commit4f29b315a6900445d2139652914f81168763816f (patch)
tree376b2179a532a9ce4e649b8dc9d40e0fb11aee7c
parente1782042f5f8281c940d697d8aa08e23a35916ae (diff)
downloadmicropython-4f29b315a6900445d2139652914f81168763816f.tar.gz
micropython-4f29b315a6900445d2139652914f81168763816f.zip
esp8266: Only execute main.py if in friendly REPL mode.
-rw-r--r--esp8266/main.c4
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
}