X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf212%2FRF212DriverLayerP.nc;h=d76e1628fc9096953961a5c20252d48795997308;hb=531a29c40625e51f0788a96c5fc9a001020f6789;hp=1df169a2b5207cf1f7d5e242d8aad351018ad607;hpb=97e9cb5f12a8fcdd7537ddd0eec19ffe364af663;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc index 1df169a2..d76e1628 100644 --- a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc +++ b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include 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; }