mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Fix port autodececting without hwid
This commit is contained in:
@ -88,7 +88,7 @@ def AutodetectUploadPort(env):
|
|||||||
if "VID:PID" not in item['hwid']:
|
if "VID:PID" not in item['hwid']:
|
||||||
continue
|
continue
|
||||||
env.Replace(UPLOAD_PORT=item['port'])
|
env.Replace(UPLOAD_PORT=item['port'])
|
||||||
for hwid in board_build_opts.get("hwid"):
|
for hwid in board_build_opts.get("hwid", []):
|
||||||
board_hwid = ("%s:%s" % (hwid[0], hwid[1])).replace("0x", "")
|
board_hwid = ("%s:%s" % (hwid[0], hwid[1])).replace("0x", "")
|
||||||
if board_hwid in item['hwid']:
|
if board_hwid in item['hwid']:
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user