Merge pull request #6751 from tannewt/no_any_key_while_reloading
Don't reload or enter repl when autoreloading
This commit is contained in:
commit
5c184faa95
2
main.c
2
main.c
@ -543,7 +543,7 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool first_run, bool *simulate_re
|
||||
}
|
||||
|
||||
// If interrupted by keyboard, return
|
||||
if (serial_connected() && serial_bytes_available()) {
|
||||
if (serial_connected() && serial_bytes_available() && !autoreload_pending()) {
|
||||
// Skip REPL if reload was requested.
|
||||
skip_repl = serial_read() == CHAR_CTRL_D;
|
||||
if (skip_repl) {
|
||||
|
Loading…
Reference in New Issue
Block a user