Skip to content

Commit

Permalink
Fix spi.transfer() "is ambiguous" issue
Browse files Browse the repository at this point in the history
  • Loading branch information
board707 committed Apr 24, 2024
1 parent 2bd65d9 commit b863dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions STM32F1/libraries/SPI/src/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ class SPIClass {

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

/**
* @brief Transmit a byte, then return the next unread byte.
Expand Down

0 comments on commit b863dd2

Please sign in to comment.