Skip to content

Commit b863dd2

Browse files
committed
Fix spi.transfer() "is ambiguous" issue
1 parent 2bd65d9 commit b863dd2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

STM32F1/libraries/SPI/src/SPI.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ 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);
281-
}*/
281+
}
282282

283283
/**
284284
* @brief Transmit a byte, then return the next unread byte.

0 commit comments

Comments
 (0)