Skip to content

Commit 4276b06

Browse files
authored
Merge pull request #6806 from dhalbert/7.3.x-6751-backport
Backport to 7.3.x of 6751: Don't reload or enter repl when autoreloading
2 parents 5a046a9 + 0d88f84 commit 4276b06

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
@@ -508,7 +508,7 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool first_run, bool *simulate_re
508508
}
509509

510510
// If interrupted by keyboard, return
511-
if (serial_connected() && serial_bytes_available()) {
511+
if (serial_connected() && serial_bytes_available() && !autoreload_pending()) {
512512
// Skip REPL if reload was requested.
513513
skip_repl = serial_read() == CHAR_CTRL_D;
514514
if (skip_repl) {

0 commit comments

Comments
 (0)