summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-12-22 11:31:37 +0700
committerhathach <[email protected]>2022-12-22 11:31:37 +0700
commit2d536123c8ff8dd233656f0a9d7c16aff606302d (patch)
tree77c94d79a12d11dff8fff28518c62346339172ef /src/class/cdc
parente3c9d9450009f757b9ddf5f94a00f14e7cfb0471 (diff)
finish moving edpt stream to tusb.c
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index 469725e72..de1466cb1 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -340,8 +340,8 @@ bool cdch_xfer_cb(uint8_t daddr, uint8_t ep_addr, xfer_result_t event, uint32_t
if ( 0 == tu_edpt_stream_write_xfer(&p_cdc->stream.tx) )
{
- // If there is no data left, a ZLP should be sent if needed
- // xferred_bytes is multiple of EP Packet size and not zero
+ // If there is no data left, a ZLP should be sent if:
+ // - xferred_bytes is multiple of EP Packet size and not zero
tu_edpt_stream_write_zlp_if_needed(&p_cdc->stream.tx, xferred_bytes);
}
}