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:
Guillaume Souchere 2024-07-01 15:24:26 +08:00
commit 9bae186123

View File

@ -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;
}