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/Spi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/Spi.cpp') diff --git a/src/drivers/Spi.cpp b/src/drivers/Spi.cpp index ec3a5e94..bf08178d 100644 --- a/src/drivers/Spi.cpp +++ b/src/drivers/Spi.cpp @@ -27,7 +27,7 @@ bool Spi::Init() { return true; } -bool Spi::WriteCmdAndBuffer(uint8_t *cmd, size_t cmdSize, uint8_t *data, size_t dataSize) { +bool Spi::WriteCmdAndBuffer(const uint8_t *cmd, size_t cmdSize, const uint8_t *data, size_t dataSize) { return spiMaster.WriteCmdAndBuffer(pinCsn, cmd, cmdSize, data, dataSize); } -- cgit v1.2.3-70-g09d2