summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorAleksei Musin <[email protected]>2026-02-09 12:22:20 +0400
committerGitHub <[email protected]>2026-02-09 12:22:20 +0400
commit6e675da608b063e2ea7db1d700d788d6a247f9ec (patch)
tree5bcf5bb529e6ca2ebefc889920b28f1fab851e3f /src/class/cdc
parentebc9edfb7a512c8dd6816a40698c62c364bd78da (diff)
parentf5424c569ddc673a9c23b78febceed8f7f098509 (diff)
Merge branch 'hathach:master' into threadx_osal
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc_host.c2
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) {