Skip to content

Commit 5859893

Browse files
committed
drop cast for all variants to fix blitFrameBuffer bug
1 parent a9da08a commit 5859893

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libraries/SPI/SPI.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,8 @@ void SPIClass::transfer(const void *tx_buf, void *rx_buf, size_t count)
207207

208208
while (count)
209209
{
210-
#ifdef _VARIANT_CLUE52840_
211210
// each transfer can only up to 64KB (16-bit) bytes
212211
const size_t xfer_len = min(count, UINT16_MAX);
213-
#else
214-
// each transfer can only up to 64KB (16-bit) bytes
215-
const size_t xfer_len = min((uint16_t) count, UINT16_MAX);
216-
#endif
217212

218213
nrfx_spim_xfer_desc_t xfer_desc =
219214
{

0 commit comments

Comments
 (0)