diff options
| author | Damien George | 2014-04-03 22:44:08 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-03 22:44:08 +0100 |
| commit | 57ad7aa66bef1ce414203d8e4c0ed671c8172a73 (patch) | |
| tree | f1a0e17d0fb1eb2d549473126ed0dcc3d8581471 /stmhal/main.c | |
| parent | 0e49642965d839fe4c9d6751acd8dc1b57652c1f (diff) | |
stmhal: On soft reset, if in raw REPL mode, don't run main.py.
Diffstat (limited to 'stmhal/main.c')
| -rw-r--r-- | stmhal/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index afef84e29..897271d14 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -434,7 +434,7 @@ soft_reset: #endif // run main script - if (reset_mode == 1) { + if (reset_mode == 1 && pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) { vstr_t *vstr = vstr_new(); vstr_add_str(vstr, "0:/"); if (pyb_config_source_dir == MP_OBJ_NULL) { |
