From 1073f33cea8558a75c5245d7d9b1827744600e52 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 10 Jun 2013 01:44:47 +0200 Subject: [PATCH] Set interrupt endpoint nak limit to USB_NAK_NOWAIT --- BTD.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BTD.cpp b/BTD.cpp index 8b3a5b24..9d663a7c 100755 --- a/BTD.cpp +++ b/BTD.cpp @@ -272,10 +272,10 @@ void BTD::EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto bConfNum = conf; uint8_t index; - if ((pep->bmAttributes & 0x03) == 3 && (pep->bEndpointAddress & 0x80) == 0x80) // Interrupt In endpoint found + if ((pep->bmAttributes & 0x03) == 3 && (pep->bEndpointAddress & 0x80) == 0x80) { // Interrupt In endpoint found index = BTD_EVENT_PIPE; - - else { + epInfo[index].bmNakPower = USB_NAK_NOWAIT; + } else { if ((pep->bmAttributes & 0x02) == 2) // Bulk endpoint found index = ((pep->bEndpointAddress & 0x80) == 0x80) ? BTD_DATAIN_PIPE : BTD_DATAOUT_PIPE; else