Skip to content

Commit b2205a6

Browse files
authored
use provided upload port
1 parent 1351303 commit b2205a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def BeforeUpload(target, source, env):
3737
if "BOARD" in env:
3838
upload_options = env.BoardConfig().get("upload", {})
3939

40-
env.AutodetectUploadPort()
40+
if not env.subst("$UPLOAD_PORT"):
41+
env.AutodetectUploadPort()
4142

4243
before_ports = get_serial_ports()
4344
if upload_options.get("use_1200bps_touch", False):

0 commit comments

Comments
 (0)