summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-24 12:37:36 +0700
committerGitHub <[email protected]>2019-05-24 12:37:36 +0700
commit981e227774e824cf5027fdf093e5d21e8a54a5a3 (patch)
tree351c687bcf917b1adfd720b7400997ee18320ee7 /src/host
parent69edf13c714c1f334b527cb12a04adb37c352ab3 (diff)
parent5f34c63660348f422d1b3934fd03cee62cbf3092 (diff)
Merge pull request #76 from hathach/develop
fix raw hid inout
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 7dcb5920f..f370b62f4 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -636,7 +636,7 @@ static inline uint8_t get_new_address(void)
{
if (_usbh_devices[addr].state == TUSB_DEVICE_STATE_UNPLUG) return addr;
}
- return CFG_TUSB_HOST_DEVICE_MAX;
+ return CFG_TUSB_HOST_DEVICE_MAX+1;
}
static inline uint8_t get_configure_number_for_device(tusb_desc_device_t* dev_desc)