diff options
| author | hathach <[email protected]> | 2013-07-01 11:34:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-01 11:37:53 +0700 |
| commit | 35adca5ba3517462417a439b8ee82bf43a4b6b67 (patch) | |
| tree | a148713a4788990ffc9be0ec67cc8874d9ebd157 /tinyusb/host | |
| parent | e1883fcd263456ffc7ef318e4f549364fff3945e (diff) | |
house keeping
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/usbh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 71a994443..628cf637a 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -271,8 +271,8 @@ void usbh_device_unplugged_isr(uint8_t hostid) dev_addr++; } - // TODO close addr0 pipe (when get 8-byte desc, set addr failed) - ASSERT(dev_addr <= TUSB_CFG_HOST_DEVICE_MAX, (void) 0 ); + if (dev_addr > TUSB_CFG_HOST_DEVICE_MAX) // unplug unmounted device + return; if (dev_addr > 0) // device can still be unplugged when not set new address { |
