X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf212%2FRF212DriverLayerP.nc;h=a2ac7dea3baed0cfcb9f219c03cc5c340a57b846;hb=82224deda747984e2c63677d9f5bab60c02c51aa;hp=616292dfd2920433839be253df1d9d23bb812298;hpb=9d7e3ad7a39e567bb854afe46e24f544618e34fa;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc index 616292df..a2ac7dea 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 @@ -492,10 +492,8 @@ implementation if( timesync != 0 ) *(timesync_relative_t*)timesync = (*(timesync_absolute_t*)timesync) - time32; - do { + while( length-- != 0 ) call FastSpiByte.splitReadWrite(*(data++)); - } - while( --length != 0 ); // wait for the SPI transfer to finish call FastSpiByte.splitRead(); @@ -959,10 +957,6 @@ 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; }