Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Adafruit_USBD_CDC::ignoreFlowControl #459

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

misaka19465
Copy link

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.

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
Copy link
Author

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.

Adafruit_USBD_CDC::ignoreFlowcontrol added in
0672cb8 may only work for rp2040 for
now.
So add #ifdef to limit this method to rp2040 core only.
@misaka19465
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant