diff options
| author | JF <jf@codingfield.com> | 2020-06-01 16:32:46 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-06-01 16:32:46 (GMT) |
| commit | de822cc3a2f07033e881331ac8914b26023bb003 (patch) | |
| tree | 23f043a10afe9f934264f043a8b5559495648a47 /src/drivers/SpiNorFlash.h | |
| parent | f6aa41c214eef418b55cf0f063c5a296b1e57b63 (diff) | |
Encapsulate DFU Image buffering and writing into spi flash in DfuImage.
Add some const in SPI driver.
Diffstat (limited to 'src/drivers/SpiNorFlash.h')
| -rw-r--r-- | src/drivers/SpiNorFlash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/SpiNorFlash.h b/src/drivers/SpiNorFlash.h index b5f1920..98267c0 100644 --- a/src/drivers/SpiNorFlash.h +++ b/src/drivers/SpiNorFlash.h @@ -24,7 +24,7 @@ namespace Pinetime { bool WriteEnabled(); uint8_t ReadConfigurationRegister(); void Read(uint32_t address, uint8_t* buffer, size_t size); - void Write(uint32_t address, uint8_t *buffer, size_t size); + void Write(uint32_t address, const uint8_t *buffer, size_t size); void WriteEnable(); void SectorErase(uint32_t sectorAddress); uint8_t ReadSecurityRegister(); |
