diff --git a/src/cdc_uart.c b/src/cdc_uart.c index 45942cf8c..4890057f0 100644 --- a/src/cdc_uart.c +++ b/src/cdc_uart.c @@ -55,7 +55,7 @@ void cdc_task(void) rx_buf[rx_len++] = uart_getc(PICOPROBE_UART_INTERFACE); } - if (tud_cdc_connected()) { + if (tud_ready()) { was_connected = 1; int written = 0; /* Implicit overflow if we don't write all the bytes to the host.