summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-04-24 18:08:00 +0700
committerhathach <[email protected]>2025-04-24 18:08:00 +0700
commit093720f60b2b849f7129e532f8efef94c04d408b (patch)
treeef8e8aec569c0653acee18108d4a214ab65418b2 /src
parent0f784e8a072d30aaa6f4c6ef0a8f22a085ea2516 (diff)
fix build
Diffstat (limited to 'src')
-rw-r--r--src/host/usbh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 94a1fa247..25942315b 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -1546,7 +1546,7 @@ static void process_enumeration(tuh_xfer_t* xfer) {
TU_ASSERT(new_addr != 0,);
usbh_device_t* new_dev = get_device(new_addr);
- new_dev->bus_info = _usbh_data.dev0_bus;
+ new_dev->bus_info = *dev0_bus;
new_dev->connected = 1;
new_dev->ep0_size = desc_device->bMaxPacketSize0;
@@ -1564,7 +1564,7 @@ static void process_enumeration(tuh_xfer_t* xfer) {
new_dev->addressed = 1;
_usbh_data.enumerating_daddr = new_addr;
- hcd_device_close(_usbh_data.dev0_bus.rhport, 0); // close dev0_bus
+ hcd_device_close(dev0_bus->rhport, 0); // close dev0
TU_ASSERT(usbh_edpt_control_open(new_addr, new_dev->ep0_size),); // open new control endpoint