mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Check serial device description when looking for GDB port
This commit is contained in:
@ -131,7 +131,8 @@ def AutodetectUploadPort(*args, **kwargs): # pylint: disable=unused-argument
|
|||||||
if not _is_match_pattern(item['port']):
|
if not _is_match_pattern(item['port']):
|
||||||
continue
|
continue
|
||||||
port = item['port']
|
port = item['port']
|
||||||
if upload_protocol.startswith("blackmagic") and "GDB" in port:
|
if upload_protocol.startswith("blackmagic") \
|
||||||
|
and "GDB" in item['description']:
|
||||||
return port
|
return port
|
||||||
for hwid in board_hwids:
|
for hwid in board_hwids:
|
||||||
hwid_str = ("%s:%s" % (hwid[0], hwid[1])).replace("0x", "")
|
hwid_str = ("%s:%s" % (hwid[0], hwid[1])).replace("0x", "")
|
||||||
|
Reference in New Issue
Block a user