1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

mrf24j40: Correct signedness of iterator

This commit is contained in:
Koen Zandberg 2017-08-29 10:27:05 +02:00
parent c7d8c7ace5
commit 2f6346930a

View File

@ -92,7 +92,7 @@ static int _send(netdev_t *netdev, const struct iovec *vector, unsigned count)
mrf24j40_tx_prepare(dev);
/* load packet data into FIFO */
for (int i = 0; i < count; i++, ptr++) {
for (unsigned i = 0; i < count; i++, ptr++) {
/* current packet data + FCS too long */
if ((len + ptr->iov_len + 2) > IEEE802154_FRAME_LEN_MAX) {
DEBUG("[mrf24j40] error: packet too large (%u byte) to be send\n",