summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-18 16:39:35 +0700
committerhathach <[email protected]>2022-03-18 16:39:35 +0700
commit8750e3b57756e4377bb737c578e2742b653c314c (patch)
treee0fae0d6e28b68ec2a771e2e761fc8f46f5e858a /src/class/cdc
parent2ff8978dde779607ddf01ba8e9d8dfeb70bfbd03 (diff)
move daddr into xfer struct
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc_host.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index 2795750ed..f946974e8 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -140,6 +140,7 @@ bool tuh_cdc_set_control_line_state(uint8_t dev_addr, bool dtr, bool rts, tuh_xf
tuh_xfer_t xfer =
{
+ .daddr = dev_addr,
.ep_addr = 0,
.setup = &request,
.buffer = NULL,
@@ -147,7 +148,7 @@ bool tuh_cdc_set_control_line_state(uint8_t dev_addr, bool dtr, bool rts, tuh_xf
.user_data = 0
};
- return tuh_control_xfer(dev_addr, &xfer);
+ return tuh_control_xfer(&xfer);
}
//--------------------------------------------------------------------+