We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00815f2 commit 40c159fCopy full SHA for 40c159f
libraries/SPI/SPI.cpp
@@ -400,7 +400,7 @@ void SPIClass::writeBytes_(uint8_t * data, uint8_t size) {
400
401
uint32_t * fifoPtr = (uint32_t*)&SPI1W0;
402
uint32_t * dataPtr = (uint32_t*) data;
403
- uint8_t dataSize = ((size + 3) / 4);
+ uint32_t dataSize = ((size + 3) / 4);
404
405
while(dataSize--) {
406
*fifoPtr = *dataPtr;
0 commit comments