eblot / pyspiflash

SPI data flash device drivers (pure Python)
MIT License
40 stars 30 forks source link

Incorrect parameter for SerialFlashUnknownJedec #23

Open addinh opened 3 years ago

addinh commented 3 years ago

SerialFlashUnknownJedec constructor expects a bytes-like parameter jedec (since it is passed in hexlify()), however in some places a str is passed into the constructor instead (lines 227 and 249 of pyspiflash/serialflash.py):

raise SerialFlashUnknownJedec("Unable to read JEDEC Id")