eblot / pyspiflash

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

Fix CMD_PROGRAM_PAGE with address offset #18

Closed pu-cc closed 4 years ago

pu-cc commented 4 years ago

Minor fix: Don't write the full 256-byte page but the actual chunk as defined in the sequence. Otherwise, pages will be written incorrectly to flash if the address is not 0.

eblot commented 4 years ago

Good catch, thanks!