Skip to content

Commit

Permalink
Merge pull request #924 from board707/spi_transfer_issue
Browse files Browse the repository at this point in the history
Fix "call to overloaded transfer() is ambiguous" issue
  • Loading branch information
stevstrong committed Apr 28, 2024
2 parents 1cbad56 + b863dd2 commit d05a128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STM32F1/libraries/SPI/src/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ 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);
}

Expand Down

0 comments on commit d05a128

Please sign in to comment.