Skip to content

Commit 5dea203

Browse files
mazgchBogdan Marinescu
authored andcommitted
Fix for USBHost build issue
1 parent ed106b7 commit 5dea203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/USBHost/USBHostSerial/USBHostSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ bool USBHostSerial::connect() {
8484

8585
/*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
8686
{
87-
if ((ports_found < USBHOST_MAXSERIAL) &&
87+
if (!ports_found &&
8888
CHECK_INTERFACE(intf_class, intf_subclass, intf_protocol)) {
8989
port_intf = intf_nb;
9090
ports_found = true;

0 commit comments

Comments
 (0)