X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fcollection%2FTreeRoutingEngineP.nc;h=7244e126491764421e3200a9f33e81685051ae30;hb=1a329382c4f4556fd52d85f4e3f4a67e54911682;hp=b168c8ce925ab333122020e186b3fe3b0418a814;hpb=1ba974b83d19fc41bf80acd52726f36f7f1df297;p=tinyos-2.x.git diff --git a/tos/lib/net/collection/TreeRoutingEngineP.nc b/tos/lib/net/collection/TreeRoutingEngineP.nc index b168c8ce..7244e126 100644 --- a/tos/lib/net/collection/TreeRoutingEngineP.nc +++ b/tos/lib/net/collection/TreeRoutingEngineP.nc @@ -250,7 +250,9 @@ implementation { i, entry->neighbor, entry->info.parent, entry->info.hopcount); continue; } - + if (TOS_NODE_ID > 10 && entry->neighbor == 0) { + continue; + } /* Compute this neighbor's path metric */ linkMetric = evaluateMetric(call LinkEstimator.getLinkQuality(entry->neighbor)); dbg("TreeRouting", @@ -293,6 +295,7 @@ implementation { call CollectionDebug.logEventRoute(NET_C_TREE_NEW_PARENT, best->neighbor, best->info.hopcount + 1, best->info.metric); call LinkEstimator.unpinNeighbor(routeInfo.parent); call LinkEstimator.pinNeighbor(best->neighbor); + call LinkEstimator.clearDLQ(best->neighbor); atomic { routeInfo.parent = best->neighbor; routeInfo.metric = best->info.metric;