mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/usb-serial-jtag-hangs-on-init' into 'master'
fix(console): USB Serial JTAG freezes when input received before the driver is installed Closes IDFGH-12989 See merge request espressif/esp-idf!31553
This commit is contained in:
commit
9bae186123
@ -1091,9 +1091,9 @@ int linenoiseProbe(void) {
|
||||
if (cb < 0) {
|
||||
continue;
|
||||
}
|
||||
if (read_bytes == 0 && c != '\x1b') {
|
||||
/* invalid response */
|
||||
break;
|
||||
if (read_bytes == 0 && c != ESC) {
|
||||
/* invalid response, try again until the timeout triggers */
|
||||
continue;
|
||||
}
|
||||
read_bytes += cb;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user