mirror of https://github.com/rusefi/usb4java.git
Fix logic bug preventing many unit tests to run on test systems
This commit is contained in:
parent
996f4ba7fc
commit
ee67671559
|
@ -120,7 +120,7 @@ public class LibUsbDeviceTest
|
|||
{
|
||||
final InterfaceDescriptor ifaceDescriptor = iface
|
||||
.altsetting()[k];
|
||||
if (ifaceDescriptor.bNumEndpoints() > 1)
|
||||
if (ifaceDescriptor.bNumEndpoints() > 0)
|
||||
{
|
||||
this.endpoint = ifaceDescriptor.endpoint()[0]
|
||||
.bEndpointAddress();
|
||||
|
|
Loading…
Reference in New Issue