mirror of
https://github.com/micropython/micropython.git
synced 2026-06-12 09:35:14 +02:00
8d3597ca50
When a host closes and reopens the CDC serial port, the IN endpoint may remain stalled from a prior runtime USB disconnect (e.g. mpremote connect/disconnect cycles). Clear the stall on DTR high so the connection recovers without requiring a device reset. On DTR low (host close), flush the TX FIFO so stale data does not accumulate and block writes on the next connection. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
This directory contains libraries, utilities and helper code developed specifically for this project. The code is intended to be portable and usable by any port.