mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Ignore hrNAK error
This commit is contained in:
parent
8e6ab3f3ae
commit
6a090c0791
1 changed files with 2 additions and 2 deletions
4
BTD.cpp
4
BTD.cpp
|
@ -342,7 +342,7 @@ void BTD::HCI_event_task() {
|
|||
/* check the event pipe*/
|
||||
uint16_t MAX_BUFFER_SIZE = BULK_MAXPKTSIZE; // Request more than 16 bytes anyway, the inTransfer routine will take care of this
|
||||
uint8_t rcode = pUsb->inTransfer(bAddress, epInfo[ BTD_EVENT_PIPE ].epAddr, &MAX_BUFFER_SIZE, hcibuf); // input on endpoint 1
|
||||
if (!rcode) // Check for errors
|
||||
if (!rcode || rcode == hrNAK) // Check for errors
|
||||
{
|
||||
switch (hcibuf[0]) //switch on event type
|
||||
{
|
||||
|
@ -527,7 +527,7 @@ void BTD::HCI_event_task() {
|
|||
} // switch
|
||||
}
|
||||
#ifdef EXTRADEBUG
|
||||
else if (rcode != hrNAK) {
|
||||
else {
|
||||
Notify(PSTR("\r\nHCI event error: "), 0x80);
|
||||
D_PrintHex<uint8_t > (rcode, 0x80);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue