forked from espressif/esp-idf
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:
@@ -1091,9 +1091,9 @@ int linenoiseProbe(void) {
|
|||||||
if (cb < 0) {
|
if (cb < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (read_bytes == 0 && c != '\x1b') {
|
if (read_bytes == 0 && c != ESC) {
|
||||||
/* invalid response */
|
/* invalid response, try again until the timeout triggers */
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
read_bytes += cb;
|
read_bytes += cb;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user