diff options
| author | hathach <[email protected]> | 2019-07-04 01:27:51 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-07-04 01:27:51 +0700 |
| commit | b0e5a1a9ec52d85fdab44d5aa2cc72e15e5315cc (patch) | |
| tree | c177644feb52b42901fddb0d417f9b5db3ff9fcd /src/class/cdc/cdc_device.c | |
| parent | 50f4c61d7cbacea6de43f2905de89e269048b21e (diff) | |
remove tud_midi_write_flush() send asap. rename tud_midi_connected() to tud_midi_mounted()
Diffstat (limited to 'src/class/cdc/cdc_device.c')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c index 464936793..6d13dafc0 100644 --- a/src/class/cdc/cdc_device.c +++ b/src/class/cdc/cdc_device.c @@ -370,7 +370,7 @@ bool cdcd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_ uint8_t const itf = 0;
cdcd_interface_t* p_cdc = &_cdcd_itf[itf];
- // receive new data
+ // Received new data
if ( ep_addr == p_cdc->ep_out )
{
for(uint32_t i=0; i<xferred_bytes; i++)
@@ -391,7 +391,9 @@ bool cdcd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_ _prep_out_transaction(itf);
}
- // sent data
+ // Data sent to host, we could continue to fetch data tx fifo to send.
+ // But it will cause incorrect baudrate set in line coding.
+ // Though maybe the baudrate is not really important !!!
// if ( ep_addr == p_cdc->ep_in )
// {
//
|
