nrf/drivers/usb: Fix reading of a single USB CDC character.

This commit is contained in:
robert-hh 2022-07-12 22:51:32 +02:00 committed by Damien George
parent be6f0f3b3b
commit cca2305211
1 changed files with 1 additions and 3 deletions

View File

@ -126,9 +126,7 @@ static void cdc_task(bool tx)
if ( tud_cdc_connected() ) {
// connected and there are data available
while (tud_cdc_available()) {
int c;
uint32_t count = tud_cdc_read(&c, 1);
(void)count;
int c = tud_cdc_read_char();
if (c == mp_interrupt_char) {
rx_ringbuf.iget = 0;
rx_ringbuf.iput = 0;