Skip to content

Commit 57ad7aa

Browse files
committed
stmhal: On soft reset, if in raw REPL mode, don't run main.py.
1 parent 0e49642 commit 57ad7aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stmhal/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ int main(void) {
434434
#endif
435435

436436
// run main script
437-
if (reset_mode == 1) {
437+
if (reset_mode == 1 && pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
438438
vstr_t *vstr = vstr_new();
439439
vstr_add_str(vstr, "0:/");
440440
if (pyb_config_source_dir == MP_OBJ_NULL) {

0 commit comments

Comments
 (0)