]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tutorials/LowPowerSensing/Sampler/LowPowerSensingPeriodicSamplerC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / apps / tutorials / LowPowerSensing / Sampler / LowPowerSensingPeriodicSamplerC.nc
index 2fd455b3b7144a7fd28bc0910035f3b6bf16a460..2ebdd544632fabedebf796ebad97fc8e68c589ad 100644 (file)
@@ -68,7 +68,7 @@ implementation {
   }
   
   void sendSampleMsg() {
-    call LPL.setRxSleepInterval(&sample_msg, 0);
+    call LPL.setRemoteWakeupInterval(&sample_msg, 0);
     if(call SampleSend.send(BASE_STATION_ADDR, &sample_msg, sizeof(nx_sensor_sample_t)) != SUCCESS)
       post sendSampleMsgTask();
     else call Leds.led2On();
@@ -78,7 +78,7 @@ implementation {
   task void sendSampleMsgTask() { sendSampleMsg(); }
        
   event void Boot.booted() {
-    call LPL.setLocalSleepInterval(LPL_INTERVAL);
+    call LPL.setLocalWakeupInterval(LPL_INTERVAL);
     call AMControl.start();
   }