mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
[BUGFIX] HID - Release bAddress on fail.
This commit is contained in:
parent
48332d13ae
commit
811baa0c4d
1 changed files with 5 additions and 4 deletions
|
@ -163,7 +163,7 @@ protected:
|
|||
|
||||
virtual void OnControlKeysChanged(uint8_t before, uint8_t after) {
|
||||
};
|
||||
|
||||
|
||||
virtual void OnKeyDown(uint8_t mod, uint8_t key) {
|
||||
};
|
||||
|
||||
|
@ -357,9 +357,10 @@ uint8_t HIDBoot<BOOT_PROTOCOL>::Init(uint8_t parent, uint8_t port, bool lowspeed
|
|||
break;
|
||||
} // for
|
||||
|
||||
if(bNumEP < 2)
|
||||
return USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED;
|
||||
|
||||
if(bNumEP < 2) {
|
||||
rcode = USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED;
|
||||
goto Fail;
|
||||
}
|
||||
//USBTRACE2("\r\nbAddr:", bAddress);
|
||||
//USBTRACE2("\r\nbNumEP:", bNumEP);
|
||||
|
||||
|
|
Loading…
Reference in a new issue