We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c9459d + 2891553 commit a686f1cCopy full SHA for a686f1c
src/ppk2_api/ppk2_api.py
@@ -219,13 +219,13 @@ def list_devices():
219
devices = [
220
(port.device, port.serial_number[:8])
221
for port in ports
222
- if port.description.startswith("nRF Connect USB CDC ACM")
+ if port.description.startswith("nRF Connect USB CDC ACM") and port.location.endswith("1")
223
]
224
else:
225
226
227
228
- if port.product == "PPK2"
+ if port.product == "PPK2" and port.location.endswith("1")
229
230
return devices
231
0 commit comments