From 4404e0aa74449d6a6910077f0340c194cc002aa1 Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Sat, 17 Mar 2018 21:14:22 -0700 Subject: [PATCH] increase readability --- tools/odrive/usbbulk_transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/odrive/usbbulk_transport.py b/tools/odrive/usbbulk_transport.py index 2a7075b8..f513789f 100644 --- a/tools/odrive/usbbulk_transport.py +++ b/tools/odrive/usbbulk_transport.py @@ -174,7 +174,8 @@ def discover_channels(path, serial_number, callback, cancellation_token, printer continue else: printer("USB device init failed. Ignoring this device") + known_devices.append((usb_device.bus, usb_device.address)) else: + known_devices.append((usb_device.bus, usb_device.address)) callback(channel) - known_devices.append((usb_device.bus, usb_device.address)) time.sleep(1)