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

Change SPI::transfer signature to match official Arduino API (#6734)

parent 09c0a39d
......@@ -265,9 +265,9 @@ void SPIClass::writeBytes(const uint8_t * data, uint32_t size)
spiEndTransaction(_spi);
}
void SPIClass::transfer(uint8_t * data, uint32_t size)
void SPIClass::transfer(void * data, uint32_t size)
{
transferBytes(data, data, size);
transferBytes((const uint8_t *)data, (uint8_t *)data, size);
}
/**
......
......@@ -73,7 +73,7 @@ public:
void beginTransaction(SPISettings settings);
void endTransaction(void);
void transfer(uint8_t * data, uint32_t size);
void transfer(void * data, uint32_t size);
uint8_t transfer(uint8_t data);
uint16_t transfer16(uint16_t data);
uint32_t transfer32(uint32_t data);
......
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