-
Notifications
You must be signed in to change notification settings - Fork 841
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
Enable/disable connection check made with DTR #932
Enable/disable connection check made with DTR #932
Conversation
this gives users the option to disable DTR check.
I guess this might affect the behaviour of the |
@lurch I think you mean when PICO_STDIO_USB_CONNECTION_CHECK_WITH_DTR and those flags combined ? how about this? when both flags are enabled adding sleep
|
I dunno, it's entirely up to @kilograham , but I was just wondering if it might be e.g. worth doing a compile-time And IMHO you probably don't want a sleep inside of |
to be clear in here, when
|
@kilograham Thanks,
if you want to revert let me know. |
nice, thanks |
* Enable/disable connection check made with DTR this gives users the option to disable DTR check. Co-authored-by: Graham Sanderson <graham.sanderson@gmail.com>
This gives users the option to disable DTR check.
this fixes issues #906, #921
Problem:
tud_cdc_connected is using DTR bit which is used in stdio_usb.c If DTR is not set by host (PC terminal or other device), we can't send anything to host.
src/class/cdc/cdc_device.h
src/class/cdc/cdc_device.h
how to fix
PICO_STDIO_USB_CONNECTION_WITHOUT_DTR option added to config file for who needs to enable.
It doesn't change current behavior because it's disabled by default. Just gives user an option to enable it.
Usage
add this to your CMakeLists.txt file and DTR check will be disabled.
add_definitions(-DPICO_STDIO_USB_CONNECTION_WITHOUT_DTR=1)