X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftests%2Fcc2420%2FTxThroughput%2FTxThroughputP.nc;h=2c91487a5328ff5295e7db3b890b3f486829485d;hb=da0cfeda9689aa64cfce0aa209f51803dcb11c21;hp=31580cd674ee40b15e8196ee2f19a683fec5de27;hpb=594acbf436f5f78611348f7763a89c84f38ba46a;p=tinyos-2.x.git diff --git a/apps/tests/cc2420/TxThroughput/TxThroughputP.nc b/apps/tests/cc2420/TxThroughput/TxThroughputP.nc index 31580cd6..2c91487a 100644 --- a/apps/tests/cc2420/TxThroughput/TxThroughputP.nc +++ b/apps/tests/cc2420/TxThroughput/TxThroughputP.nc @@ -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(); }