8000 Don't reload or enter repl when autoreloading · squix78/circuitpython@0d88f84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d88f84

Browse files
tannewtdhalbert
authored andcommitted
Don't reload or enter repl when autoreloading
A keypress while we waited for autoreload used to enter repl. Now it won't. Fixes adafruit#6480
1 parent 4a5790b commit 0d88f84

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)
0