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
This commit is contained in:
commit
4276b06824
2
main.c
2
main.c
@ -508,7 +508,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