From dce9da372645f0568e2d61dce8212bbbb7e9e046 Mon Sep 17 00:00:00 2001 From: bbx10node Date: Wed, 20 Jan 2016 02:02:44 -1000 Subject: [PATCH] Fix 5 second delay in keyboard and mouse input --- src/hidboot.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hidboot.h b/src/hidboot.h index 66f630f..09a4f70 100644 --- a/src/hidboot.h +++ b/src/hidboot.h @@ -233,7 +233,8 @@ void HIDBoot::Initialize() epInfo[i].deviceEpNum = 0; epInfo[i].hostPipeNum = 0; epInfo[i].maxPktSize = (i) ? 0 : 8; - epInfo[i].epAttribs = 0; + epInfo[i].bmSndToggle = 0; + epInfo[i].bmRcvToggle = 0; epInfo[i].bmNakPower = (i) ? USB_NAK_NOWAIT : USB_NAK_MAX_POWER; } @@ -463,7 +464,8 @@ void HIDBoot::EndpointXtract(uint32_t conf, uint32_t iface, uint3 // Fill in the endpoint info structure epInfo[index].deviceEpNum = (pep->bEndpointAddress & 0x0F); epInfo[index].maxPktSize = (uint8_t)pep->wMaxPacketSize; - epInfo[index].epAttribs = 0; + epInfo[index].bmSndToggle = 0; + epInfo[index].bmRcvToggle = 0; TRACE_USBHOST(printf("HIDBoot::EndpointXtract : Found new endpoint\r\n");) TRACE_USBHOST(printf("HIDBoot::EndpointXtract : deviceEpNum: %lu\r\n", epInfo[index].deviceEpNum);)