Fix logic bug preventing many unit tests to run on test systems

This commit is contained in:
Klaus Reimer 2018-10-08 19:54:58 +02:00
parent 996f4ba7fc
commit ee67671559
1 changed files with 1 additions and 1 deletions

View File

@ -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();