]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tutorials/LowPowerSensing/Sampler/LowPowerSensingPeriodicSamplerC.nc
Updated to work with the changes to the Packet interface
[tinyos-2.x.git] / apps / tutorials / LowPowerSensing / Sampler / LowPowerSensingPeriodicSamplerC.nc
index 17a1b1efca03166275e445b4d63a947d44e6016e..2fd455b3b7144a7fd28bc0910035f3b6bf16a460 100644 (file)
@@ -92,7 +92,7 @@ implementation {
   
   event void SampleLogRead.readDone(sensor_sample_t* sample, error_t error) {
     if(error == SUCCESS) {
-      nx_sensor_sample_t* nx_sample = call SampleSend.getPayload(&sample_msg);
+      nx_sensor_sample_t* nx_sample = call SampleSend.getPayload(&sample_msg, sizeof(nx_sample));
       call SampleNxConverter.copyToNx(nx_sample, sample);
       sendSampleMsg();
     }