]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/cc2420/TxThroughput/TxThroughputP.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / apps / tests / cc2420 / TxThroughput / TxThroughputP.nc
index 31580cd674ee40b15e8196ee2f19a683fec5de27..2c91487a5328ff5295e7db3b890b3f486829485d 100644 (file)
@@ -105,7 +105,7 @@ implementation {
   
   /***************** Timer Events ***************/
   event void Timer.fired() {
-    ((ThroughputMsg *) call SerialAMSend.getPayload(&serialMsg))->packetsPerSecond = packetsPerSecond;
+    ((ThroughputMsg *) call SerialAMSend.getPayload(&serialMsg, sizeof(ThroughputMsg)))->packetsPerSecond = packetsPerSecond;
     packetsPerSecond = 0;
     post sendSerial();
   }