]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Fixed an edge case bug where the LQI takes on the RSSI value in the metadata when...
authorrincon <rincon>
Thu, 17 Jan 2008 15:19:27 +0000 (15:19 +0000)
committerrincon <rincon>
Thu, 17 Jan 2008 15:19:27 +0000 (15:19 +0000)
tos/chips/cc2420/receive/CC2420ReceiveP.nc

index d615790cfdb5d7c482746971a6654348b44566e8..3a440356d65f8efa1209f7f4af2452c406fe7d13 100644 (file)
@@ -324,8 +324,8 @@ implementation {
     uint8_t* buf = (uint8_t*) call CC2420PacketBody.getHeader( m_p_rx_buf );;
     
     metadata->crc = buf[ rxFrameLength ] >> 7;
-    metadata->rssi = buf[ rxFrameLength - 1 ];
     metadata->lqi = buf[ rxFrameLength ] & 0x7f;
+    metadata->rssi = buf[ rxFrameLength - 1 ];
     m_p_rx_buf = signal Receive.receive( m_p_rx_buf, m_p_rx_buf->data, 
                                          rxFrameLength );