Skip to content

Commit

Permalink
protocol.jesd3: fix bitarray conversion fallout.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanda-phi authored and whitequark committed Oct 26, 2023
1 parent 1c9d56d commit b5097cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/glasgow/protocol/jesd3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit b5097cc

Please sign in to comment.