From a20cdc597ab464a5fdc6ddb81aedb60dc61cb4b9 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 5 Aug 2016 09:55:48 +0200 Subject: [PATCH] Fix comment in sample code --- doc/NO_SYS_SampleCode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/NO_SYS_SampleCode.c b/doc/NO_SYS_SampleCode.c index a62cc545..83d3be57 100644 --- a/doc/NO_SYS_SampleCode.c +++ b/doc/NO_SYS_SampleCode.c @@ -20,9 +20,9 @@ void eth_mac_irq() static err_t netif_output(struct netif *netif, struct pbuf *p) { LINK_STATS_INC(link.xmit); - MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); /* Update SNMP stats (only if you use SNMP) */ + MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); int unicast = ((p->payload[0] & 0x01) == 0); if (unicast) { MIB2_STATS_NETIF_INC(netif, ifoutucastpkts); @@ -91,10 +91,9 @@ void main(void) if(p != NULL) { LINK_STATS_INC(link.recv); - + /* Update SNMP stats (only if you use SNMP) */ MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); - int unicast = ((p->payload[0] & 0x01) == 0); if (unicast) { MIB2_STATS_NETIF_INC(netif, ifinucastpkts);