--- netmd/libnetmd.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/netmd/libnetmd.py b/netmd/libnetmd.py index a2c1cf2..1d1d531 100644 --- a/netmd/libnetmd.py +++ b/netmd/libnetmd.py @@ -66,7 +66,7 @@ def iterdevices(usb_context, bus=None, device_address=None): if bus is not None and bus != device.getBusNumber(): continue if device_address is not None and \ - device != device_address.getDeviceAddress(): + device_address != device.getDeviceAddress(): continue if (device.getVendorID(), device.getProductID()) in KNOWN_USB_ID_SET: yield NetMD(device.open()) -- 1.6.6