From dc4b87309a061e2a97f0a859ad5442f07930a1fd Mon Sep 17 00:00:00 2001 From: rflury Date: Fri, 29 Jan 2010 10:44:39 +0000 Subject: [PATCH] Added bug-fix to XE1205PhyP.nc, where the xe1205_mtu constant was misinterpreted. --- tos/chips/xe1205/phy/XE1205PhyP.nc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tos/chips/xe1205/phy/XE1205PhyP.nc b/tos/chips/xe1205/phy/XE1205PhyP.nc index f588b848..7aedd4fd 100644 --- a/tos/chips/xe1205/phy/XE1205PhyP.nc +++ b/tos/chips/xe1205/phy/XE1205PhyP.nc @@ -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; -- 2.39.2