forked from M-Labs/artiq
artiq_flash: adapt to bit2bin
This commit is contained in:
parent
4880e4225d
commit
5dc131636d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user