We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bca86b commit 4c9044aCopy full SHA for 4c9044a
1 file changed
main.c
@@ -1078,17 +1078,16 @@ int __attribute__((used)) main(void) {
1078
int exit_code = PYEXEC_FORCED_EXIT;
1079
bool skip_repl = true;
1080
bool simulate_reset = true;
1081
- bool first_run = true;
1082
for (;;) {
1083
if (!skip_repl) {
1084
exit_code = run_repl(get_safe_mode());
1085
supervisor_set_run_reason(RUN_REASON_REPL_RELOAD);
1086
}
1087
if (exit_code == PYEXEC_FORCED_EXIT) {
1088
- if (!first_run) {
+ if (!simulate_reset) {
1089
serial_write_compressed(translate("soft reboot\n"));
1090
1091
- first_run = false;
+ simulate_reset = false;
1092
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
1093
// If code.py did a fake deep sleep, pretend that we
1094
// are running code.py for the first time after a hard
0 commit comments