[Tinyos-devel] CRC bug
Philip Levis
pal at cs.stanford.edu
Mon Dec 31 15:15:19 PST 2007
On Dec 31, 2007, at 2:15 PM, David Moss wrote:
> I know it's obscure (HIL level after all), but take a look at
> CC2420ReceiveP, line 290:
>
> // buf[rxFrameLength] >> 7 checks the CRC
> if ( ( buf[ rxFrameLength ] >> 7 ) && rx_buf ) {
> uint8_t type = ( header->fcf >> IEEE154_FCF_FRAME_TYPE ) & 7;
> signal CC2420Receive.receive( type, m_p_rx_buf );
> if ( type == IEEE154_TYPE_DATA ) {
> post receiveDone_task();
> return;
> }
> }
Maybe it would be useful to change the 7 to the CRC enum?
Phil
More information about the Tinyos-devel
mailing list