don't stop polling for more devices as having more than one inserted raises more problems and we need to keep the check
This commit is contained in:
@@ -92,9 +92,8 @@ def load(loaders=None):
|
||||
device = loader()
|
||||
if device:
|
||||
device_list.extend(device)
|
||||
break # stop polling if we found the device...
|
||||
|
||||
if len(device_list) == 1: # ...especialy when we need exactly one
|
||||
if len(device_list) == 1:
|
||||
return device_list[0]
|
||||
|
||||
msg = '{:d} devices found'.format(len(device_list))
|
||||
|
||||
Reference in New Issue
Block a user