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 b472b78 + 843e92b commit 2121aa0Copy full SHA for 2121aa0
src/ppk2_api/ppk2_api.py
@@ -8,7 +8,7 @@
8
import serial
9
import struct
10
import logging
11
-
+import os
12
import queue
13
import multiprocessing
14
@@ -210,7 +210,10 @@ def _handle_raw_data(self, adc_value):
210
def list_devices():
211
import serial.tools.list_ports
212
ports = serial.tools.list_ports.comports()
213
- devices = [port.device for port in ports if port.product == 'PPK2']
+ if os.name == 'nt':
214
+ devices = [port.device for port in ports if port.description.startswith("nRF Connect USB CDC ACM")]
215
+ else:
216
+ devices = [port.device for port in ports if port.product == 'PPK2']
217
return devices
218
219
def get_data(self):
0 commit comments