]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tutorials/LowPowerSensing/Base/LowPowerSensingBaseC.nc
Fix the apps affected by the changes in the LowPowerListening interface.
[tinyos-2.x.git] / apps / tutorials / LowPowerSensing / Base / LowPowerSensingBaseC.nc
index 919b7a6daa8a9a63d113ced881a531b9b654e19f..7e7454c2a51f72ee927435878eaafeb07d528f38 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();
   }
   
@@ -85,7 +85,7 @@ implementation {
   event message_t* SerialRequestSampleMsgsReceive.receive(message_t* msg, void* payload, uint8_t len) {
     serial_request_samples_msg_t* request_msg = payload;
     call Leds.led0On();
-    call LPL.setRxSleepInterval(&request_samples_msg, LPL_INTERVAL+100);
+    call LPL.setRemoteWakeupInterval(&request_samples_msg, LPL_INTERVAL+100);
     call RadioRequestSampleMsgsSend.send(request_msg->addr, &request_samples_msg, sizeof(request_samples_msg_t));
     return msg;
   }