From 5aacc633b43ed7f0caed87bcd559ce4cea3b2b13 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 29 Apr 2014 01:54:28 +0700 Subject: fix/correct the max_loop (upper bound for EHCI & OHCI) endpoint list. This causes multiple devices hub mounting problems previously --- tinyusb/host/ohci/ohci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyusb/host/ohci') diff --git a/tinyusb/host/ohci/ohci.c b/tinyusb/host/ohci/ohci.c index 128760779..ef6da66d5 100644 --- a/tinyusb/host/ohci/ohci.c +++ b/tinyusb/host/ohci/ohci.c @@ -384,7 +384,7 @@ static inline ohci_ed_t * ed_find_free(uint8_t dev_addr) static ohci_ed_t * ed_list_find_previous(ohci_ed_t const * p_head, ohci_ed_t const * p_ed) { - uint32_t max_loop = HCD_MAX_ENDPOINT; + uint32_t max_loop = HCD_MAX_ENDPOINT*TUSB_CFG_HOST_DEVICE_MAX; ohci_ed_t const * p_prev = p_head; -- cgit v1.3.1