mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
host fix address alloc when it reach max devices
This commit is contained in:
parent
3846645a28
commit
f4762ff012
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user