Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: snet.cpp
- Revision:
- 3:59f3c806f127
- Parent:
- 2:397316d97354
- Child:
- 5:7ed0abcc02d1
diff -r 397316d97354 -r 59f3c806f127 snet.cpp
--- a/snet.cpp	Tue Mar 31 22:27:25 2015 +0000
+++ b/snet.cpp	Wed Apr 01 17:08:39 2015 +0000
@@ -131,11 +131,10 @@
         enet_rx_cnt++;
         if (memcmp(&buf[ENET_DMAC_O], my_mac, 6) == 0) {
             got_unicast(buf, len);
-            rv = 1;
         } else if (memcmp(&buf[ENET_DMAC_O], broadcast_mac, 6) == 0) {
             got_broadcast(buf, len);
-            rv = 2;
         }
+        rv++;
     }
     return rv;
 }