Skip to content

Commit 3dc0290

Browse files
committed
Don't reload or enter repl when autoreloading
A keypress while we waited for autoreload used to enter repl. Now it won't. Fixes #6480
1 parent d645e9c commit 3dc0290

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)