mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 10:38:40 +08:00
644a0cd525
This is addressing an issue where Rx interrupts were not restored for cdcacm after the buffer had been filled (in a burst). The Rx interrupts were only restored after the watchdog timeout of 200ms fired. This happened because CONFIG_SERIAL_RXDMA was set, however, for the cdcacm driver this does not actually matter as it is relying on uart_enablerxint to be called via the ops table. This patch makes sure that uart_enablerxint and uart_disablerxint are always called, independent of CONFIG_SERIAL_RXDMA, relying on the ops table to be correct for the case where it should be only a no-op.