]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/cc2420/LplUnicastPeriodicDelivery/TestPeriodicP.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / apps / tests / cc2420 / LplUnicastPeriodicDelivery / TestPeriodicP.nc
index ddb17abb5e6ab4f243c0129bdc24fb8691d8abd9..b6b33489aa75e081934baeb149744005e039d0f2 100644 (file)
@@ -104,7 +104,7 @@ implementation {
   
   /**************** Tasks ****************/
   task void send() {
-    TestPeriodicMsg *periodicMsg = (TestPeriodicMsg *) call Packet.getPayload(&fullMsg, NULL);
+    TestPeriodicMsg *periodicMsg = (TestPeriodicMsg *) call Packet.getPayload(&fullMsg, sizeof(TestPeriodicMsg));
     periodicMsg->count = count;
     call LowPowerListening.setRxSleepInterval(&fullMsg, 1000);
     if(call AMSend.send(0, &fullMsg, sizeof(TestPeriodicMsg)) != SUCCESS) {