mirror of
https://github.com/romanz/amodem.git
synced 2026-04-20 21:26:39 +08:00
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()
|
device = loader()
|
||||||
if device:
|
if device:
|
||||||
device_list.extend(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]
|
return device_list[0]
|
||||||
|
|
||||||
msg = '{:d} devices found'.format(len(device_list))
|
msg = '{:d} devices found'.format(len(device_list))
|
||||||
|
|||||||
Reference in New Issue
Block a user