diff options
| author | sakumisu <[email protected]> | 2023-01-10 15:01:50 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2023-01-10 15:01:50 +0800 |
| commit | 1df1fefa3951eaf743a39b9c452809dc645e0ae9 (patch) | |
| tree | 8f85a3a12a667537c1dc6189ed04b16f931295d1 | |
| parent | b0e1cf4c025c2dd20d4025fe1e44ca0b6c798c63 (diff) | |
fix no exthub build error
| -rw-r--r-- | class/hub/usbh_hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c index 0c74773e..ae4c70b0 100644 --- a/class/hub/usbh_hub.c +++ b/class/hub/usbh_hub.c @@ -57,6 +57,7 @@ static void usbh_hub_devno_free(uint8_t devno) g_devinuse &= ~(1 << devno); } } +#endif static void usbh_hub_register(struct usbh_hub *hub) { @@ -68,7 +69,6 @@ static void usbh_hub_unregister(struct usbh_hub *hub) usb_slist_remove(&hub_class_head, &hub->list); } -#endif static int _usbh_hub_get_hub_descriptor(struct usbh_hub *hub, uint8_t *buffer) { struct usb_setup_packet *setup; |
