]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/cc2420/TxThroughput/TxThroughputP.nc
Proper MSP_BSL_FLAGS for telosa and telosb based platforms using TMI modular tos...
[tinyos-2.x.git] / apps / tests / cc2420 / TxThroughput / TxThroughputP.nc
index 31580cd674ee40b15e8196ee2f19a683fec5de27..deceb27b045eed226ce91f65b1c0b09367b68edc 100644 (file)
  * OF THE POSSIBILITY OF SUCH DAMAGE
  */
  
+#include "TxThroughput.h"
 /**
+ * This application is used more for characterization rather than a
+ * test.  It measures the maximum radio throughput using the largest
+ * message payload size, and does not use low power listening.
+ *
  * @author David Moss
  */
  
-#include "TxThroughput.h"
 module TxThroughputP {
   uses {
     interface Boot;
@@ -105,7 +109,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();
   }