X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf212%2FRF212DriverLayerP.nc;h=a2ac7dea3baed0cfcb9f219c03cc5c340a57b846;hb=82224deda747984e2c63677d9f5bab60c02c51aa;hp=d76e1628fc9096953961a5c20252d48795997308;hpb=000887fbfc824a9a8632ba3c3a71e23524d516a8;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc index d76e1628..a2ac7dea 100644 --- a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc +++ b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc @@ -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; }