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
Fork of USBHost by
Diff: USBHostSerial/USBHostSerial.cpp
- Revision:
- 20:8f510a2502ef
- Parent:
- 19:bd46ea19486b
--- a/USBHostSerial/USBHostSerial.cpp Mon Dec 16 09:00:18 2013 +0000
+++ b/USBHostSerial/USBHostSerial.cpp Mon Dec 16 09:15:21 2013 +0000
@@ -84,7 +84,7 @@
/*virtual*/ bool USBHostSerial::parseInterface(uint8_t intf_nb, uint8_t intf_class, uint8_t intf_subclass, uint8_t intf_protocol) //Must return true if the interface should be parsed
{
- if ((ports_found < USBHOST_MAXSERIAL) &&
+ if (!ports_found &&
CHECK_INTERFACE(intf_class, intf_subclass, intf_protocol)) {
port_intf = intf_nb;
ports_found = true;
