]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
best performance
authorandreaskoepke <andreaskoepke>
Tue, 11 Nov 2008 10:41:35 +0000 (10:41 +0000)
committerandreaskoepke <andreaskoepke>
Tue, 11 Nov 2008 10:41:35 +0000 (10:41 +0000)
tos/platforms/eyesIFX/net/lqi/CC2420ActiveMessageC.nc

index 9363911d014597dca33e08ee4f6b80dc6998e2fa..50121a5937da9290e626cf698e04b1a229016a5c 100644 (file)
@@ -56,7 +56,7 @@ implementation {
     async command uint8_t CC2420Packet.getLqi( message_t* p_msg ) {
         uint32_t s = (getMetadata(p_msg))->strength;
         if(s > 60) s = 10;
-        if(s > 24) s = 24;
+        if(s > 22) s = 22;
         return (s*13/5 + 48);
     }
 }