drop cast for all variants to fix blitFrameBuffer bug
This commit is contained in:
parent
a9da08a01a
commit
5859893fd1
1 changed files with 0 additions and 5 deletions
|
|
@ -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 =
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue