summaryrefslogtreecommitdiff
path: root/src/host/ehci
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-22 00:32:49 +0700
committerhathach <[email protected]>2019-11-22 00:33:10 +0700
commit03deeea4655dc3cb39011397254f8dc6b5c9383f (patch)
tree7f29da43515f7cf2daa895fef15455160527930c /src/host/ehci
parentf5d737aa7ec6abde5738d29510c8416d5e8b17e7 (diff)
fix segger host example
Diffstat (limited to 'src/host/ehci')
-rw-r--r--src/host/ehci/ehci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/ehci/ehci.c b/src/host/ehci/ehci.c
index 04ee5c5ce..18123a497 100644
--- a/src/host/ehci/ehci.c
+++ b/src/host/ehci/ehci.c
@@ -170,7 +170,7 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr)
list_remove_qhd_by_addr( (ehci_link_t*) qhd_async_head(rhport), dev_addr );
// Remove from all interval period list
- for(uint8_t i = 0; i < TU_ARRAY_SZIE(ehci_data.period_head_arr); i++)
+ for(uint8_t i = 0; i < TU_ARRAY_SIZE(ehci_data.period_head_arr); i++)
{
list_remove_qhd_by_addr( (ehci_link_t*) &ehci_data.period_head_arr[i], dev_addr);
}