diff options
| author | Zixun LI <[email protected]> | 2026-07-03 11:10:50 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-03 11:10:50 +0200 |
| commit | 3157621ee67b486aecf887ca88851a20a9bb1447 (patch) | |
| tree | d088dd5d355e39993995ee2e60202936f41857da /src/class | |
| parent | 7a4111b96ef6279e75579f9a18443834f6a0871d (diff) | |
| parent | 20f59d0228fb7a2d2de46de6265d65f21b068778 (diff) | |
Merge pull request #3660 from andrewleech/cdch-on-enum-idx-guard
cdc_host: fix undeclared 'idx' when only LINE_CONTROL_ON_ENUM is defined
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index 30afc2f5c..2a452a43c 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -822,7 +822,7 @@ 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 + #if defined(CFG_TUH_CDC_LINE_CODING_ON_ENUM) || defined(CFG_TUH_CDC_LINE_CONTROL_ON_ENUM) const uint8_t idx = get_idx_by_ptr(p_cdc); #endif const uintptr_t state = xfer->user_data; |
