]> 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 02:09:39 +0000 (02:09 +0000)
committerrincon <rincon>
Thu, 17 Jan 2008 02:09:39 +0000 (02:09 +0000)
tos/chips/cc2420/CC2420.h

index 46afe342f304b3722a8a857d3d2591f8e3936477..6a9d4f3a14dec1409c597d7b101f431e46a26d17 100644 (file)
@@ -66,12 +66,15 @@ typedef nx_struct cc2420_footer_t {
 
 /**
  * CC2420 Packet metadata. Contains extra information about the message
- * that will not be transmitted
+ * that will not be transmitted.
+ *
+ * Note that the first two bytes automatically take in the values of the
+ * FCS when the payload is full. Do not modify the first two bytes of metadata.
  */
 typedef nx_struct cc2420_metadata_t {
-  nx_uint8_t tx_power;
   nx_uint8_t rssi;
   nx_uint8_t lqi;
+  nx_uint8_t tx_power;
   nx_bool crc;
   nx_bool ack;
   nx_uint16_t time;