Fixed CRC for updated CRC-handling in new MSPSim
This commit is contained in:
parent
e3a3b2a845
commit
c4370676ee
@ -26,13 +26,10 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: CC2420RadioPacketConverter.java,v 1.14 2010/02/26 08:15:41 nifi Exp $
|
||||
* $Id: CC2420RadioPacketConverter.java,v 1.15 2010/03/09 10:37:47 nifi Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja.mspmote.interfaces;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import se.sics.cooja.ConvertedRadioPacket;
|
||||
import se.sics.cooja.RadioPacket;
|
||||
import se.sics.mspsim.util.CCITT_CRC;
|
||||
@ -44,7 +41,6 @@ import se.sics.mspsim.util.CCITT_CRC;
|
||||
* @author Fredrik Osterlind
|
||||
*/
|
||||
public class CC2420RadioPacketConverter {
|
||||
private static Logger logger = Logger.getLogger(CC2420RadioPacketConverter.class);
|
||||
|
||||
public static final boolean WITH_PREAMBLE = true;
|
||||
public static final boolean WITH_SYNCH = true;
|
||||
@ -90,7 +86,6 @@ public class CC2420RadioPacketConverter {
|
||||
}
|
||||
cc2420Data[pos++] = len;
|
||||
cc2420CRC.setCRC(0);
|
||||
cc2420CRC.add(len); /* TODO Should length be included in CRC? */
|
||||
|
||||
/* 4 byte X-MAC: not implemented */
|
||||
if (WITH_XMAC) {
|
||||
|
Loading…
Reference in New Issue
Block a user