Skip to content

Commit c20491b

Browse files
authored
Merge pull request #708 from dstieglitz/master
fix issue with blitFrameBuffer not working on Adafruit CLUE (HT @jimsbugs)
2 parents b8e2b61 + 5859893 commit c20491b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SPI/SPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void SPIClass::transfer(const void *tx_buf, void *rx_buf, size_t count)
208208
while (count)
209209
{
210210
// each transfer can only up to 64KB (16-bit) bytes
211-
const size_t xfer_len = min((uint16_t) count, UINT16_MAX);
211+
const size_t xfer_len = min(count, UINT16_MAX);
212212

213213
nrfx_spim_xfer_desc_t xfer_desc =
214214
{

0 commit comments

Comments
 (0)