File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1078,17 +1078,16 @@ int __attribute__((used)) main(void) {
1078
1078
int exit_code = PYEXEC_FORCED_EXIT ;
1079
1079
bool skip_repl = true;
1080
1080
bool simulate_reset = true;
1081
- bool first_run = true;
1082
1081
for (;;) {
1083
1082
if (!skip_repl ) {
1084
1083
exit_code = run_repl (get_safe_mode ());
1085
1084
supervisor_set_run_reason (RUN_REASON_REPL_RELOAD );
1086
1085
}
1087
1086
if (exit_code == PYEXEC_FORCED_EXIT ) {
1088
- if (!first_run ) {
1087
+ if (!simulate_reset ) {
1089
1088
serial_write_compressed (translate ("soft reboot\n" ));
1090
1089
}
1091
- first_run = false;
1090
+ simulate_reset = false;
1092
1091
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL ) {
1093
1092
// If code.py did a fake deep sleep, pretend that we
1094
1093
// are running code.py for the first time after a hard
You can’t perform that action at this time.
0 commit comments