From b5097ccf9a2ad33ff331c870e1bc0909c5a8f52d Mon Sep 17 00:00:00 2001 From: Wanda Date: Thu, 26 Oct 2023 23:37:00 +0200 Subject: [PATCH] protocol.jesd3: fix `bitarray` conversion fallout. --- software/glasgow/protocol/jesd3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/glasgow/protocol/jesd3.py b/software/glasgow/protocol/jesd3.py index 53e28da5a..9bce1d238 100644 --- a/software/glasgow/protocol/jesd3.py +++ b/software/glasgow/protocol/jesd3.py @@ -193,7 +193,7 @@ def _on_L(self, index, values): if self.fuse is None: self._parse_error("fuse list specified before fuse count") index = int(index, 10) - values = bitarray(values.decode("ascii")) + values = bits(values[::-1].decode("ascii")) if index + len(values) > len(self.fuse): self._parse_error("fuse list specifies range [%d:%d] beyond last fuse %d" % (index, index + len(values), len(self.fuse)))