Skip to content

Commit 6ba7d47

Browse files
committed
Fix upload with blackmagic probe
1 parent 9e61108 commit 6ba7d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def AfterUpload(target, source, env): # pylint: disable=W0613,W0621
209209
UPLOADERFLAGS=[
210210
"-nx",
211211
"--batch",
212-
"-ex", "target extended-remote %s$UPLOAD_PORT" % '\\\\.\\' if IS_WINDOWS else '',
212+
"-ex", "target extended-remote %s$UPLOAD_PORT" % ('\\\\.\\' if IS_WINDOWS else ''),
213213
"-ex", "monitor %s_scan" %
214214
("jtag" if upload_protocol == "blackmagic-jtag" else "swdp"),
215215
"-ex", "attach 1",
@@ -220,7 +220,7 @@ def AfterUpload(target, source, env): # pylint: disable=W0613,W0621
220220
ERASEFLAGS=[
221221
"-nx",
222222
"--batch",
223-
"-ex", "target extended-remote %s$UPLOAD_PORT" % '\\\\.\\' if IS_WINDOWS else '',
223+
"-ex", "target extended-remote %s$UPLOAD_PORT" % ('\\\\.\\' if IS_WINDOWS else ''),
224224
"-ex", "monitor %s_scan" %
225225
("jtag" if upload_protocol == "blackmagic-jtag" else "swdp"),
226226
"-ex", "attach 1",

0 commit comments

Comments
 (0)