Skip to content

Commit 991b3fa

Browse files
authored
respecting upload_speed when upload_protocol = serial (#574)
1 parent 9a81a77 commit 991b3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def __configure_upload_port(env):
276276
"stm32flash", "stm32flash"),
277277
UPLOADERFLAGS=[
278278
"-g", board.get("upload.offset_address", "0x08000000"),
279-
"-b", "115200", "-w"
279+
"-b", env.subst("$UPLOAD_SPEED") or "115200", "-w"
280280
],
281281
UPLOADCMD='$UPLOADER $UPLOADERFLAGS "$SOURCE" "${__configure_upload_port(__env__)}"'
282282
)

0 commit comments

Comments
 (0)