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.
1 parent cdbcdac commit 57bb508Copy full SHA for 57bb508
samples/cellular/lwm2m_client/scripts/device.py
@@ -151,8 +151,10 @@ def get_com_ports(cls, sid):
151
com_ports = []
152
for item in comports():
153
manufacturer_match = item.manufacturer in ('SEGGER', 'Nordic Semiconductor')
154
+ if not manufacturer_match:
155
+ continue
156
serial_match = item.serial_number.lstrip("0") == sid
- if manufacturer_match and serial_match:
157
+ if serial_match:
158
com_ports.append(item.device)
159
# Sort com ports on their integer identifiers, which takes care of corner case
160
# where we have a cross-over from N digit to N + 1 digit identifiers
0 commit comments