Skip to content

Commit d05a128

Browse files
authored
Merge pull request #924 from board707/spi_transfer_issue
Fix "call to overloaded transfer() is ambiguous" issue
2 parents 1cbad56 + b863dd2 commit d05a128

File tree

1 file changed

+1
-1
lines changed
  • STM32F1/libraries/SPI/src

1 file changed

+1
-1
lines changed

STM32F1/libraries/SPI/src/SPI.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class SPIClass {
276276

277277
// Some libraries (like recent Adafruit graphics libraries) require
278278
// the write function be availabe under the name transfer, so here it is:
279-
inline void transfer(const void * buffer, size_t length) {
279+
inline void transfer(const void * buffer, uint32 length) {
280280
write(buffer, (uint32)length);
281281
}
282282

0 commit comments

Comments
 (0)