]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/RadioStress/RadioStressC.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / apps / tests / RadioStress / RadioStressC.nc
index 30bc6592dc24c03b68c9484309c43ae234568a7c..e03a9b261206bcad782d145f4deec0267502c9ea 100644 (file)
@@ -75,7 +75,7 @@ implementation {
   task void sendTask();
 
   void sendPacket() {
-    RadioCountMsg* rcm = (RadioCountMsg*)call Packet.getPayload(&packet, NULL);
+    RadioCountMsg* rcm = (RadioCountMsg*)call Packet.getPayload(&packet, sizeof(RadioCountMsg));
     if (locked) {return;}
     rcm->counter = txCounter;
     if (call AMSend.send(AM_BROADCAST_ADDR, &packet, 2) == SUCCESS) {