diff options
| author | HiFiPhile <[email protected]> | 2026-01-06 18:42:58 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-01-06 18:42:58 +0100 |
| commit | 60154a128795bcd6ca36042cac1b8bebf1a2764e (patch) | |
| tree | 0557ab4b2a01c64de109c54662ba6f3a58147bc9 /src/class/cdc | |
| parent | c5f91ec6f54509d03529e276ffd42b0d9abab695 (diff) | |
| parent | 593dce28349cf5b1299c2cf1193312cb783574f3 (diff) | |
Merge remote-tracking branch 'tinyusb/master' into ep0_direct
Diffstat (limited to 'src/class/cdc')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index 32f6827b0..f19c4a327 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -828,7 +828,9 @@ static bool set_line_state_on_enum(cdch_interface_t *p_cdc, tuh_xfer_t *xfer) { ENUM_SET_LINE_CONTROL, ENUM_SET_LINE_COMPLETE, }; + #ifdef CFG_TUH_CDC_LINE_CODING_ON_ENUM const uint8_t idx = get_idx_by_ptr(p_cdc); + #endif const uintptr_t state = xfer->user_data; switch (state) { |
