Skip to content

Commit af2ac0a

Browse files
authored
Merge pull request #5602 from aivarannamaa/skip-main-script-in-raw-mode-soft-reboot
Don't run main script when soft-rebooting in raw mode
2 parents 565bfeb + e8c809e commit af2ac0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,11 @@ int __attribute__((used)) main(void) {
858858
serial_write_compressed(translate("soft reboot\n"));
859859
}
860860
first_run = false;
861-
skip_repl = run_code_py(safe_mode);
861+
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
862+
skip_repl = run_code_py(safe_mode);
863+
} else {
864+
skip_repl = false;
865+
}
862866
} else if (exit_code != 0) {
863867
break;
864868
}

0 commit comments

Comments
 (0)