Skip to content
Snippets Groups Projects
Commit 164768be authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

netstats_l2: correct rx_bytes in encx24j600

parent b4121974
No related branches found
No related tags found
No related merge requests found
...@@ -369,7 +369,7 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info) ...@@ -369,7 +369,7 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
} }
#ifdef MODULE_NETSTATS_L2 #ifdef MODULE_NETSTATS_L2
netdev->stats.rx_count++; netdev->stats.rx_count++;
netdev->stats.rx_bytes += len; netdev->stats.rx_bytes += payload_len;
#endif #endif
/* read packet (without 4 bytes checksum) */ /* read packet (without 4 bytes checksum) */
sram_op(dev, ENC_RRXDATA, 0xFFFF, buf, payload_len); sram_op(dev, ENC_RRXDATA, 0xFFFF, buf, payload_len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment