Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
permit SPIFFS_write() on NULL buffer
SPIFFS_write(&spi_fs, fd, buf, count) with buf = 0x0 can be valid when dumping the firmware of the microcontroller mapped to address 0x0. SPIFFS_write(&spi_fs, fd, 0x0, firmware_size) would previously omit the first page when dumping the firmware to flash (all 0xFF). Use len instead to signal where only page header is stored in spiffs_page_allocate_data
- Loading branch information