diff options
author | Damien Tournoud <damien@platform.sh> | 2022-12-13 20:38:48 -0800 |
---|---|---|
committer | Damien Tournoud <damien@platform.sh> | 2022-12-13 20:46:32 -0800 |
commit | fd1e66edb3ef479016dbcc5aa7158d8fdfec5793 (patch) | |
tree | 6d90ed521dead3a173060177fb003e98c5072cc6 /docs/esp32 | |
parent | 9bec52a2f8371847e1d75fee84bf37a9b2876cd4 (diff) |
esp32/usb: Cleanup connection detection.
This was introduced by 35fb90bd57e1a3259aaf67cede50628da6888485, but
it is much simpler and essentially the same to just use
`tud_cdc_n_connected()`.
The only difference is that tud_cdc_n_connected() only checks for DTR,
but this is correct anyway: DTR indicates device presence, RTS indicates
that the host wants to receive data.
Signed-off-by: Damien Tournoud <damien@platform.sh>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions