From 83278a6edb799d8e0e03c5f323834ced1b51e6a1 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 20 Jan 2018 01:19:09 +0000 Subject: [PATCH] artiq_flash: fix a refactoring bug. --- artiq/frontend/artiq_flash.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index f2d73610e..67b72d5b7 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -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