Adafruit_TinyUSB_Arduino icon indicating copy to clipboard operation
Adafruit_TinyUSB_Arduino copied to clipboard

add Adafruit_USBD_CDC::ignoreFlowControl

Open misaka19465 opened this issue 1 year ago • 2 comments

In some cases, the target application will not assert the DTR virtual line, thus preventing writing operations to succeed. For this reason, the Adafruit_USBD_CDC::ignoreFlowControl() method disables the connection’s state verification, enabling the program to write on the port, even though the data might be lost.

misaka19465 avatar Sep 15 '24 07:09 misaka19465

I'm pretty sure that these building failures were caused by these platforms with Adafruit_TinyUSB included, as their built-in tinyUSB lib didn't include functions I added. So I think it's ok to merge anyway.

misaka19465 avatar Sep 15 '24 10:09 misaka19465

As #460 says, ignoring tud_cdc_n_connected may only works for rp2040, so I made this change. Hope future solution would be found.

misaka19465 avatar Sep 18 '24 15:09 misaka19465