[BUGFIX] HID - Release bAddress on fail.

This commit is contained in:
Andrew J. Kroll 2013-09-02 23:01:59 -04:00
parent 48332d13ae
commit 811baa0c4d

View file

@ -357,9 +357,10 @@ uint8_t HIDBoot<BOOT_PROTOCOL>::Init(uint8_t parent, uint8_t port, bool lowspeed
break; break;
} // for } // for
if(bNumEP < 2) if(bNumEP < 2) {
return USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED; rcode = USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED;
goto Fail;
}
//USBTRACE2("\r\nbAddr:", bAddress); //USBTRACE2("\r\nbAddr:", bAddress);
//USBTRACE2("\r\nbNumEP:", bNumEP); //USBTRACE2("\r\nbNumEP:", bNumEP);