summaryrefslogtreecommitdiff
path: root/docs/esp32/tutorial/index.rst
diff options
context:
space:
mode:
authorDamien Tournoud <damien@platform.sh>2022-12-13 20:38:48 -0800
committerDamien Tournoud <damien@platform.sh>2022-12-13 20:46:32 -0800
commitfd1e66edb3ef479016dbcc5aa7158d8fdfec5793 (patch)
tree6d90ed521dead3a173060177fb003e98c5072cc6 /docs/esp32/tutorial/index.rst
parent9bec52a2f8371847e1d75fee84bf37a9b2876cd4 (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/tutorial/index.rst')
0 files changed, 0 insertions, 0 deletions