diff options
| author | hathach <[email protected]> | 2014-04-29 01:54:28 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-04-29 01:54:28 +0700 |
| commit | 5aacc633b43ed7f0caed87bcd559ce4cea3b2b13 (patch) | |
| tree | 0850994393b3942e98f34bf1fd6adc89ae3c7742 /tinyusb/host/ohci | |
| parent | b7b1d530f4a7182d87f2438637c9fcd21a0cb51f (diff) | |
fix/correct the max_loop (upper bound for EHCI & OHCI) endpoint list. This causes multiple devices hub mounting problems previously
Diffstat (limited to 'tinyusb/host/ohci')
| -rw-r--r-- | tinyusb/host/ohci/ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|
