From 64d6b614b67e3f06050221cb6922b3d47f0185c1 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 25 Feb 2023 18:36:04 +0100 Subject: [PATCH] efinix: in jtag mode fix access to the ll driver --- src/efinix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/efinix.cpp b/src/efinix.cpp index c2f5e72..6caa3f7 100644 --- a/src/efinix.cpp +++ b/src/efinix.cpp @@ -42,7 +42,7 @@ Efinix::Efinix(Jtag* jtag, const std::string &filename, _spi(NULL), _rst_pin(0), _done_pin(0), _cs_pin(0), _oe_pin(0) { - _ftdi_jtag = reinterpret_cast(jtag); + _ftdi_jtag = reinterpret_cast(jtag->get_ll_class()); /* WA: before using JTAG, device must restart with cs low * but cs and rst for xyloni are connected to interfaceA (ie SPI)