From 5859893fd1e766cd16b3bae98f6336605ba8a013 Mon Sep 17 00:00:00 2001 From: dstieglitz Date: Wed, 29 Dec 2021 02:22:34 -0800 Subject: [PATCH] drop cast for all variants to fix blitFrameBuffer bug --- libraries/SPI/SPI.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libraries/SPI/SPI.cpp b/libraries/SPI/SPI.cpp index 1ba9df2b..c0f23949 100644 --- a/libraries/SPI/SPI.cpp +++ b/libraries/SPI/SPI.cpp @@ -207,13 +207,8 @@ void SPIClass::transfer(const void *tx_buf, void *rx_buf, size_t count) while (count) { -#ifdef _VARIANT_CLUE52840_ // each transfer can only up to 64KB (16-bit) bytes const size_t xfer_len = min(count, UINT16_MAX); -#else - // each transfer can only up to 64KB (16-bit) bytes - const size_t xfer_len = min((uint16_t) count, UINT16_MAX); -#endif nrfx_spim_xfer_desc_t xfer_desc = {