1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

Merge pull request #10415 from maribu/encx24j600

drivers/encx24j600: Implemented missing drop case
This commit is contained in:
Kaspar Schleiser 2019-03-11 14:15:40 +01:00 committed by GitHub
commit 4dcd958dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,7 +357,10 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
}
/* read packet (without 4 bytes checksum) */
sram_op(dev, ENC_RRXDATA, 0xFFFF, buf, payload_len);
}
/* Frame was retrieved or drop was requested --> remove it from buffer */
if (buf || (len > 0)) {
/* decrement available packet count */
cmd(dev, ENC_SETPKTDEC);