X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fxe1205%2Fphy%2FXE1205PhyP.nc;h=7aedd4fd5df7882ac90ff54d9727709f5f6801cf;hb=dc4b87309a061e2a97f0a859ad5442f07930a1fd;hp=3a8f79f49b70eef3d9fb8d48865863ea4fc815a0;hpb=7c9cfc86286f6b4db85cf700a6032b3eccdc8ea0;p=tinyos-2.x.git diff --git a/tos/chips/xe1205/phy/XE1205PhyP.nc b/tos/chips/xe1205/phy/XE1205PhyP.nc index 3a8f79f4..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; @@ -246,7 +250,7 @@ implementation { } } - command uint8_t XE1205PhyRssi.readRxRssi() { + async command uint8_t XE1205PhyRssi.readRxRssi() { return rssiTab[(rssiH<<2) |rssiL]; }