RPIOUART_Driver: fix warning
cast PKT_MAX_REGS to uint32_t to be able to compare without a warning
This commit is contained in:
parent
dc86a53862
commit
ac3f49b06f
@ -159,7 +159,7 @@ void RPIOUARTDriver::_timer_tick(void)
|
||||
struct IOPacket _packet_tx = {0}, _packet_rx = {0};
|
||||
|
||||
/* get write_buf bytes */
|
||||
uint32_t max_size = MIN(PKT_MAX_REGS * 2,
|
||||
uint32_t max_size = MIN((uint32_t) PKT_MAX_REGS * 2,
|
||||
_baudrate / 10 / (1000000 / RPIOUART_POLL_TIME_INTERVAL));
|
||||
uint32_t n = MIN(_writebuf.available(), max_size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user