Skip to content

Commit 5c7de24

Browse files
committed
Fix bossac command line substitution
1 parent b9f5e55 commit 5c7de24

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

octoprint_firmwareupdater/methods/bossac.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def _flash_bossac(self, firmware=None, printer_port=None, **kwargs):
4848
bossac_command = bossac_command.replace("{firmware}", firmware)
4949

5050
if bossac_disableverify:
51-
bossac_command = bossac_command.replace(" {disableverify} ", " ")
51+
bossac_command = bossac_command.replace("{disableverify}", "")
5252
else:
53-
bossac_command = bossac_command.replace(" {disableverify} ", " -v ")
53+
bossac_command = bossac_command.replace("{disableverify}", "-v")
5454

5555
self._logger.info(u"Attempting to reset the board to SAM-BA")
5656
self._send_status("progress", subtype="samreset")
@@ -70,7 +70,7 @@ def _flash_bossac(self, firmware=None, printer_port=None, **kwargs):
7070
if not output:
7171
p.commands[0].poll()
7272
continue
73-
73+
7474
for line in output.split("\n"):
7575
if line.endswith("\r"):
7676
line = line[:-1]

0 commit comments

Comments
 (0)