Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FATFileSystem mbed-rtos
Dependents: Peach_AudioChannelDividerAndCompensator
Diff: USBHost/USBDeviceConnected.cpp
- Revision:
- 24:868cbfe611a7
- Parent:
- 8:93da8ea2708b
diff -r 759ec18ee1a7 -r 868cbfe611a7 USBHost/USBDeviceConnected.cpp --- a/USBHost/USBDeviceConnected.cpp Fri Mar 07 16:00:46 2014 +0000 +++ b/USBHost/USBDeviceConnected.cpp Tue Jun 03 11:30:38 2014 +0100 @@ -50,10 +50,10 @@ INTERFACE * USBDeviceConnected::getInterface(uint8_t index) { if (index >= MAX_INTF) return NULL; - + if (intf[index].in_use) return &intf[index]; - + return NULL; }