]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/rf212/RF212DriverLayerP.nc
move/create RF2xxTimeSyncMessageC to avoid future changes in platforms
[tinyos-2.x.git] / tos / chips / rf2xx / rf212 / RF212DriverLayerP.nc
index 1df169a2b5207cf1f7d5e242d8aad351018ad607..d76e1628fc9096953961a5c20252d48795997308 100644 (file)
@@ -24,7 +24,7 @@
 #include <RF212DriverLayer.h>
 #include <Tasklet.h>
 #include <RadioAssert.h>
-#include <GenericTimeSyncMessage.h>
+#include <TimeSyncMessageLayer.h>
 #include <RadioConfig.h>
 
 module RF212DriverLayerP
@@ -959,6 +959,10 @@ implementation
 
        async command uint8_t PacketLinkQuality.get(message_t* msg)
        {
+               // we have some bug in BLIP, so fix it here
+               if( getMeta(msg)->lqi > 120 )
+                       return 120;
+
                return getMeta(msg)->lqi;
        }