Skip to content
Permalink
Browse files

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

fixes: #3241
  • Loading branch information...
me-no-dev committed Sep 22, 2019
1 parent e22d8b6 commit 9eaeeb660c7bc0b42e942870845e0e38a60d7ec8
Showing with 2 additions and 2 deletions.
  1. +1 −1 libraries/SPI/src/SPI.cpp
  2. +1 −1 libraries/SPI/src/SPI.h
@@ -204,7 +204,7 @@ void SPIClass::transferBits(uint32_t data, uint32_t * out, uint8_t bits)
* @param data uint8_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){
return spiWriteNL(_spi, data, size);
@@ -76,7 +76,7 @@ class SPIClass
void write(uint8_t data);
void write16(uint16_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 writePattern(uint8_t * data, uint8_t size, uint32_t repeat);

0 comments on commit 9eaeeb6

Please sign in to comment.
You can’t perform that action at this time.