fix min() type warning
This commit is contained in:
parent
4760493129
commit
82130a22cd
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ void SPIClass::transfer(const void *tx_buf, void *rx_buf, size_t count)
|
|||
while (count)
|
||||
{
|
||||
// each transfer can only up to 64KB (16-bit) bytes
|
||||
const size_t xfer_len = min(count, UINT16_MAX);
|
||||
const size_t xfer_len = min(count, (size_t) UINT16_MAX);
|
||||
|
||||
nrfx_spim_xfer_desc_t xfer_desc =
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue