changeset 243:b568dde5f512 main

Skip messages not for us, but don't leave the loop.
author Bob Cook <bob@bobcookdev.com>
date Sun, 28 Jun 2015 13:04:30 -0700
parents 1b23ac90f06a
children d1e26bffa503
files main/robots/odr-sonar-front/canmsgs.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/robots/odr-sonar-front/canmsgs.cpp	Sun Jun 28 13:02:54 2015 -0700
+++ b/main/robots/odr-sonar-front/canmsgs.cpp	Sun Jun 28 13:04:30 2015 -0700
@@ -140,7 +140,7 @@
 
         if ( dstnode != can_node_broadcast && dstnode != can_node_odr_sonar_front )
         {
-            return true; // not for us, everything ok
+            continue; // not for us, everything ok, loop around and try again
         }
 
         switch ( dataid )