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
This commit is contained in:
commit
af2ac0aa60
6
main.c
6
main.c
@ -858,7 +858,11 @@ int __attribute__((used)) main(void) {
|
||||
serial_write_compressed(translate("soft reboot\n"));
|
||||
}
|
||||
first_run = false;
|
||||
skip_repl = run_code_py(safe_mode);
|
||||
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
|
||||
skip_repl = run_code_py(safe_mode);
|
||||
} else {
|
||||
skip_repl = false;
|
||||
}
|
||||
} else if (exit_code != 0) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user