rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.49k stars 1.25k forks source link

Fix "call to overloaded transfer() is ambiguous" issue #924

Closed board707 closed 2 months ago

board707 commented 2 months ago

Two overloaded SPI.transfer()methods in file STM32F1/libraries/SPI/src/SPI.h:

void transfer(const void * buffer, size_t length);

void transfer(uint8_t * trx_buf, uint32 len);

produces a "call is ambiguous" error if called as: spi.transfer(uint8*, size_t);

Making the type of second parameter the same in both methods eliminates the error.

stevstrong commented 2 months ago

Thank you.