Skip to content

Commit

Permalink
Merge pull request #5602 from aivarannamaa/skip-main-script-in-raw-mo…
Browse files Browse the repository at this point in the history
…de-soft-reboot

Don't run main script when soft-rebooting in raw mode
  • Loading branch information
tannewt authored Nov 23, 2021
2 parents 565bfeb + e8c809e commit af2ac0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit af2ac0a

Please sign in to comment.