Skip to content

Commit 5c184fa

Browse files
authored
Merge pull request #6751 from tannewt/no_any_key_while_reloading
Don't reload or enter repl when autoreloading
2 parents 28c93ca + 3dc0290 commit 5c184fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool first_run, bool *simulate_re
543543
}
544544

545545
// If interrupted by keyboard, return
546-
if (serial_connected() && serial_bytes_available()) {
546+
if (serial_connected() && serial_bytes_available() && !autoreload_pending()) {
547547
// Skip REPL if reload was requested.
548548
skip_repl = serial_read() == CHAR_CTRL_D;
549549
if (skip_repl) {

0 commit comments

Comments
 (0)