]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tutorials/LowPowerSensing/Base/LowPowerSensingBaseC.nc
Updated to work with the changes to the Packet interface
[tinyos-2.x.git] / apps / tutorials / LowPowerSensing / Base / LowPowerSensingBaseC.nc
index 919b7a6daa8a9a63d113ced881a531b9b654e19f..48e2dc0245418a2d37a42f8af48bb75dad522304 100644 (file)
@@ -65,7 +65,7 @@ implementation {
 
   event void Boot.booted() {
     serialSending = FALSE;
-    sample_msg_payload = (serial_sample_msg_t*)call SerialPacket.getPayload(&sample_msg, NULL);
+    sample_msg_payload = (serial_sample_msg_t*)call SerialPacket.getPayload(&sample_msg, sizeof(serial_sample_msg_t));
     call RadioAMControl.start();
   }