diff options
| author | hathach <[email protected]> | 2020-11-23 23:40:13 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-11-23 23:40:13 +0700 |
| commit | 4b4f88078503648b38444feee1fda322b65baa43 (patch) | |
| tree | 79b59e205cadd5e64567f5fdc4b14a364749f26c /examples | |
| parent | 308028e17cb4ba5e93413431a51bbe94d2afcc53 (diff) | |
add tud_ready() check in tud_cdc_n_write_flush()
other clean up
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc/src/main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/device/cdc_msc/src/main.c b/examples/device/cdc_msc/src/main.c index e4477927f..cf2bfd7c9 100644 --- a/examples/device/cdc_msc/src/main.c +++ b/examples/device/cdc_msc/src/main.c @@ -145,16 +145,6 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) void tud_cdc_rx_cb(uint8_t itf) { (void) itf; - uint8_t const line_state = tud_cdc_get_line_state(); - - // Provide information that terminal did not set DTR bit - if( !(line_state & 0x01) ) - { - tud_cdc_write_str("\r\nTinyUSB example: Your terminal did not set DTR bit\r\n"); - tud_cdc_write_flush(); - // Clear rx fifo since we do not read the data - tud_cdc_read_flush(); - } } //--------------------------------------------------------------------+ |
