From b863dd2d162e5fe7b8a8be9b2ffa63d5581c9b08 Mon Sep 17 00:00:00 2001 From: board707 <50185434+board707@users.noreply.github.com> Date: Thu, 25 Apr 2024 02:27:36 +0300 Subject: [PATCH] Fix spi.transfer() "is ambiguous" issue --- STM32F1/libraries/SPI/src/SPI.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/STM32F1/libraries/SPI/src/SPI.h b/STM32F1/libraries/SPI/src/SPI.h index e9063bea5..b4c6899a1 100644 --- a/STM32F1/libraries/SPI/src/SPI.h +++ b/STM32F1/libraries/SPI/src/SPI.h @@ -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.