artiq_flash: fix a refactoring bug.

This commit is contained in:
whitequark 2018-01-20 01:19:09 +00:00
parent 37fa3b29da
commit 83278a6edb
1 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class ProgrammerSayma(Programmer):
sector_size = 0x10000
def __init__(self, client, preinit_script):
Programmer.__init__(self, client, preinit_script)
Programmer.__init__(self, client, [])
self._preinit_script += [
"interface ftdi",
@ -177,6 +177,8 @@ class ProgrammerSayma(Programmer):
"adapter_khz 5000",
"transport select jtag",
*preinit_script,
# tap 0, pld 0
"source {}".format(self._transfer_script("cpld/xilinx-xc7.cfg")),
# tap 1, pld 1