Skip to content

Commit 04b3709

Browse files
authored
espressif#1623, implementing suggested change
Splitted suggested fix issue espressif#1623 in a header and source part. Dit not completely dive into the code. Giving data twice as parameter feels wrong, but it compiles, and i can succesfully use the W5500 with SPI with this fix. Doesn't compile without.
1 parent f644d9d commit 04b3709

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: libraries/SPI/src/SPI.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ void SPIClass::writeBytes(uint8_t * data, uint32_t size)
214214
spiEndTransaction(_spi);
215215
}
216216

217+
void SPIClass::transfer(uint8_t * data, uint32_t size)
218+
{
219+
transferBytes(data, data, size);
220+
}
221+
217222
/**
218223
* @param data void *
219224
* @param size uint32_t

0 commit comments

Comments
 (0)