diff options
author | Damien George <damien@micropython.org> | 2024-06-24 15:54:54 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-06-26 14:50:42 +1000 |
commit | 880f7bc0406a1ef249c833e1a88c023cd339ecf6 (patch) | |
tree | 242c5d0318ea6ca450dfdbcade33d03237cc6405 /docs/esp8266 | |
parent | 0c28a5ab068e2cfd25bc7706019c4c695ba78f1e (diff) |
shared/tinyusb/mp_usbd_cdc: Fix short CDC TX timeouts.
The `mp_event_wait_ms()` function may return earlier than the requested
timeout, and if that happens repeatedly (eg due to lots of USB data and
IRQs) then the loop waiting for CDC TX FIFO space to become available may
exit much earlier than MICROPY_HW_USB_CDC_TX_TIMEOUT, even when there is
no space.
Fix this by using `mp_hal_ticks_ms()` to compute a more accurate timeout.
The `basics/int_big_mul.py` test fails on RPI_PICO without this fix.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266')
0 files changed, 0 insertions, 0 deletions