mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
nrf/drivers/usb: Fix reading of a single USB CDC character.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user