Skip to content

Commit 0eab566

Browse files
committed
[NRF51822 Target] Write in binary mode
1 parent 41305f4 commit 0eab566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspace_tools/targets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def binary_hook(t_self, resources, elf, binf):
431431
# Remove UICR section
432432
del sdh[NRF51822.UICR_START:NRF51822.UICR_END+1]
433433

434-
with open(binf, "w") as f:
434+
with open(binf, "wb") as f:
435435
sdh.tofile(f, format = 'bin')
436436

437437

0 commit comments

Comments
 (0)