diff options
| author | Ha Thach <[email protected]> | 2025-11-13 12:47:36 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-13 12:47:36 +0700 |
| commit | 2b07fa6e6a5376b6a9d1c4dd39b61a96cd9e0138 (patch) | |
| tree | e0b070d6cfdc575bbf4f965c836e0b263d9a4afe /src | |
| parent | 397a3af8afc4bc5460572da4a40629684dfa788c (diff) | |
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c index 80fa81d99..babb89952 100644 --- a/src/class/cdc/cdc_device.c +++ b/src/class/cdc/cdc_device.c @@ -290,7 +290,7 @@ void cdcd_init(void) { } bool cdcd_deinit(void) { - for(uint8_t i=0; i<CFG_TUD_CDC; i++) { + for (uint8_t i = 0; i < CFG_TUD_CDC; i++) { cdcd_interface_t* p_cdc = &_cdcd_itf[i]; tu_edpt_stream_deinit(&p_cdc->stream.rx); tu_edpt_stream_deinit(&p_cdc->stream.tx); @@ -305,7 +305,7 @@ void cdcd_reset(uint8_t rhport) { cdcd_interface_t* p_cdc = &_cdcd_itf[i]; tu_memclr(p_cdc, ITF_MEM_RESET_SIZE); - tu_fifo_set_overwritable(&p_cdc->stream.tx.ff, _cdcd_cfg.tx_overwritabe_if_not_connected); // // back to default + tu_fifo_set_overwritable(&p_cdc->stream.tx.ff, _cdcd_cfg.tx_overwritabe_if_not_connected); // back to default tu_edpt_stream_close(&p_cdc->stream.rx); tu_edpt_stream_close(&p_cdc->stream.tx); } |
