From de822cc3a2f07033e881331ac8914b26023bb003 Mon Sep 17 00:00:00 2001 From: JF Date: Mon, 1 Jun 2020 18:32:46 +0200 Subject: Encapsulate DFU Image buffering and writing into spi flash in DfuImage. Add some const in SPI driver. --- src/drivers/SpiNorFlash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/SpiNorFlash.h') diff --git a/src/drivers/SpiNorFlash.h b/src/drivers/SpiNorFlash.h index b5f19202..98267c09 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(); -- cgit v1.2.3-70-g09d2