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

View File

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