Skip to content

Commit 8631967

Browse files
committed
Fix wrong check for Upload port
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 682a46d commit 8631967

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

builder/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
upload_source = target_firm
114114
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]
115115

116-
if "windows" not in get_systype() and env.subst("$UPLOAD_PORT") == "":
116+
if "windows" in get_systype() and env.subst("$UPLOAD_PORT") == "":
117117
env.Append(
118118
UPLOADERFLAGS=[
119119
"-u"
@@ -122,6 +122,9 @@
122122
"-u"
123123
]
124124
)
125+
else:
126+
upload_actions.insert(0, env.VerboseAction(env.AutodetectUploadPort,
127+
"Looking for upload port..."))
125128

126129
AlwaysBuild(env.Alias("upload", upload_source, upload_actions))
127130

0 commit comments

Comments
 (0)