summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/dual/host_info_to_device_cdc/src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/dual/host_info_to_device_cdc/src/main.c b/examples/dual/host_info_to_device_cdc/src/main.c
index c1017141c..7e593f234 100644
--- a/examples/dual/host_info_to_device_cdc/src/main.c
+++ b/examples/dual/host_info_to_device_cdc/src/main.c
@@ -142,7 +142,7 @@ void cdc_task(void) {
if (!tud_cdc_connected()) {
// delay a bit otherwise we can outpace host's terminal. Linux will set LineState (DTR) then Line Coding.
// If we send data before Linux's terminal set Line Coding, it can be ignored --> missing data with hardware test loop
- board_delay(10);
+ board_delay(20);
return;
}
@@ -151,6 +151,7 @@ void cdc_task(void) {
if (is_print[daddr]) {
is_print[daddr] = false;
print_device_info(daddr, &descriptor_device[daddr]);
+ tud_cdc_write_flush();
}
}
}