From 71fcf20a95fa2e26f353f210f4299fa6707d4d0b Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 6 Mar 2013 01:46:01 +0700 Subject: fix error - remove p_qhd->qtd_overlay.halted = 1; --- tinyusb/host/ehci/ehci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tinyusb') diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index 8d9f81fe4..58b6c5aba 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -259,7 +259,7 @@ static void queue_head_init(ehci_qhd_t *p_qhd, uint8_t dev_addr, uint16_t max_pa p_qhd->data_toggle_control = (xfer_type == TUSB_XFER_CONTROL) ? 1 : 0; p_qhd->head_list_flag = (dev_addr == 0) ? 1 : 0; // addr0's endpoint is the static asyn list head p_qhd->max_package_size = max_packet_size; - p_qhd->non_hs_control_endpoint = ((endpoint_addr == 0) && (usbh_device_info_pool[dev_addr].speed != TUSB_SPEED_HIGH) ) ? 1 : 0; + p_qhd->non_hs_control_endpoint = ((TUSB_XFER_CONTROL == xfer_type) && (usbh_device_info_pool[dev_addr].speed != TUSB_SPEED_HIGH) ) ? 1 : 0; p_qhd->nak_count_reload = 0; p_qhd->smask = 0; @@ -271,7 +271,6 @@ static void queue_head_init(ehci_qhd_t *p_qhd, uint8_t dev_addr, uint16_t max_pa //------------- inactive when just opened -------------// p_qhd->qtd_overlay.next.terminate = 1; p_qhd->qtd_overlay.alternate.terminate = 1; - p_qhd->qtd_overlay.halted = 1; //------------- HCD Management Data -------------// p_qhd->used = 1; -- cgit v1.3.1