summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorzhiqiang-ch <[email protected]>2025-12-31 14:53:29 +0800
committerGitHub <[email protected]>2025-12-31 14:53:29 +0800
commit8544db8bf5e6b83527fb0e1d903a70f90cbb8873 (patch)
tree487ab3431a26acd95a889b3c9f1b126d71adafdb /src/class
parent239e20ba7399fc026325c4cd8c98c08a160a9773 (diff)
parent3eafddb02a3347873dc1816f53b428518eb97c61 (diff)
Merge branch 'hathach:master' into master
Diffstat (limited to 'src/class')
-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) {