Skip to content

Commit af17449

Browse files
committed
[ot] scripts/opentitan: spidevflash.py: fix regression introduced in 58a706da3
Address `TypeError: unhashable type: 'bytearray'` error message. Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent 2c3d845 commit af17449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/opentitan/spidevflash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _wait_for_remote(self):
7878
# to handle requests
7979
timeout = now() + 3.0
8080
while now() < timeout:
81-
jedec = set(self._spidev.read_jedec_id())
81+
jedec = set(self._spidev.read_jedec_id().jedec)
8282
if len(jedec) > 1 or jedec.pop() not in (0x00, 0xff):
8383
return
8484
raise RuntimeError('Remote SPI device not ready')

0 commit comments

Comments
 (0)