]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/xe1205/phy/XE1205PhyP.nc
Added bug-fix to XE1205PhyP.nc, where the xe1205_mtu constant was misinterpreted.
[tinyos-2.x.git] / tos / chips / xe1205 / phy / XE1205PhyP.nc
index f588b84828d6f954abdec84568734b95e64cd64b..7aedd4fd5df7882ac90ff54d9727709f5f6801cf 100644 (file)
@@ -73,7 +73,11 @@ implementation {
     uint8_t rxFrameLen = 0;
     uint8_t nextTxLen=0;
     uint8_t nextRxLen;
-    char rxFrame[xe1205_mtu];
+    // Bugfix 29.1.2010: Plus 2 Bytes for the xe1205_phy_header_t 
+    // defined in XE1205SendReceiveP.nc
+    // This is just a hack to make it work, this entire code needs
+    // to be cleaned up & documented!
+    char rxFrame[xe1205_mtu + 2];
     uint8_t headerLen = 4;
 
     uint16_t stats_rxOverruns;