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:
commit
4dcd958dce
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user