]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
be a bit more conservative when choosing links
authorandreaskoepke <andreaskoepke>
Fri, 5 Oct 2007 10:16:24 +0000 (10:16 +0000)
committerandreaskoepke <andreaskoepke>
Fri, 5 Oct 2007 10:16:24 +0000 (10:16 +0000)
tos/platforms/eyesIFX/net/lqi/LqiRoutingEngineP.nc

index ce2c57a24782e733e7fb175a9d314df5a8de6ebf..a78aa54031770e9fb6e7fd766f9935772af4c509 100644 (file)
@@ -113,8 +113,8 @@ implementation {
   int16_t gRecentOriginPacketSeqNo[MHOP_HISTORY_SIZE];
 
   uint16_t adjustLQI(uint8_t val) {
-    uint16_t result;                
-    if(val > 30) val = 30;
+    uint16_t result;
+    if(val >= 80) val = 80;                 
     result = 80 - val;
     result = (((result * result) >> 3) * result) >> 3;
     return result;