fix various warnings

This commit is contained in:
hathach committed 2021-05-25 21:29:08 +07:00
1 parent 9ae33db665
commit b9de0dd52d
6 files changed
+51 -45

No files matched your search

+1 -1
View File
@@ -206,7 +206,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((uint16_t) count, UINT16_MAX);
nrfx_spim_xfer_desc_t xfer_desc =
{