diff options
| author | hathach <[email protected]> | 2013-06-22 22:26:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-06-22 22:26:00 +0700 |
| commit | fe53297b17f59307d11ebfd303b8d09c7070ff4d (patch) | |
| tree | 9e864b8793e32350950c38362aebd6e05e7ede12 /tinyusb/host/ehci | |
| parent | 54c065b1d55c1354b00c58fb6bce6f8f6bd6617b (diff) | |
fix bug with custom class that terminate xfer after the first QTD
Diffstat (limited to 'tinyusb/host/ehci')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index b023fafed..89e5ab57b 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -458,11 +458,11 @@ void async_advance_isr(ehci_qhd_t * const async_head) // TODO do we need to close addr0 if(async_head->is_removing) // closing control pipe of addr0 { - async_head->is_removing = 0; - async_head->p_qtd_list_head = async_head->p_qtd_list_tail = NULL; + async_head->is_removing = 0; + async_head->p_qtd_list_head = async_head->p_qtd_list_tail = NULL; async_head->qtd_overlay.halted = 1; - usbh_devices[0].state = TUSB_DEVICE_STATE_UNPLUG; + usbh_devices[0].state = TUSB_DEVICE_STATE_UNPLUG; } for(uint8_t relative_dev_addr=0; relative_dev_addr < TUSB_CFG_HOST_DEVICE_MAX; relative_dev_addr++) |
