Skip to content

Commit

Permalink
artiq_flash: adapt to bit2bin
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Nov 9, 2017
1 parent 4880e42 commit 5dc1316
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artiq/frontend/artiq_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ def main():
raise ValueError("invalid action", action)

if conv:
bit2bin(bit, bin_handle)
with open(bit, "rb") as f, open(bin_handle, "wb") as g:
bit2bin(f, g)
try:
programmer.do()
finally:
Expand Down

0 comments on commit 5dc1316

Please sign in to comment.