Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permit SPIFFS_write() on NULL buffer #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 11, 2017

  1. 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
    benpicco committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    7a2abbd View commit details
    Browse the repository at this point in the history