Unverified Commit 9eaeeb66 authored by Me No Dev's avatar Me No Dev Committed by GitHub

Change the first argument of SPI::wrteBytes to be const (#3242)

fixes: https://github.com/espressif/arduino-esp32/issues/3241
parent e22d8b67
...@@ -204,7 +204,7 @@ void SPIClass::transferBits(uint32_t data, uint32_t * out, uint8_t bits) ...@@ -204,7 +204,7 @@ void SPIClass::transferBits(uint32_t data, uint32_t * out, uint8_t bits)
* @param data uint8_t * * @param data uint8_t *
* @param size uint32_t * @param size uint32_t
*/ */
void SPIClass::writeBytes(uint8_t * data, uint32_t size) void SPIClass::writeBytes(const uint8_t * data, uint32_t size)
{ {
if(_inTransaction){ if(_inTransaction){
return spiWriteNL(_spi, data, size); return spiWriteNL(_spi, data, size);
......
...@@ -76,7 +76,7 @@ public: ...@@ -76,7 +76,7 @@ public:
void write(uint8_t data); void write(uint8_t data);
void write16(uint16_t data); void write16(uint16_t data);
void write32(uint32_t data); void write32(uint32_t data);
void writeBytes(uint8_t * data, uint32_t size); void writeBytes(const uint8_t * data, uint32_t size);
void writePixels(const void * data, uint32_t size);//ili9341 compatible void writePixels(const void * data, uint32_t size);//ili9341 compatible
void writePattern(uint8_t * data, uint8_t size, uint32_t repeat); void writePattern(uint8_t * data, uint8_t size, uint32_t repeat);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment