forked from M-Labs/artiq
1
0
Fork 0

artiq_flash: adapt to bit2bin

This commit is contained in:
Robert Jördens 2017-11-09 18:10:15 +01:00
parent 4880e4225d
commit 5dc131636d
1 changed files with 2 additions and 1 deletions

View File

@ -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: