]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/TestFtsp/FtspLpl/TestFtspC.nc
removed cc2420 dependency
[tinyos-2.x.git] / apps / tests / TestFtsp / FtspLpl / TestFtspC.nc
index ed8f504d1c9b5b3d98e977eaaa5c6790119f35c7..58b58ee35c362f350256e5b149902989ced4c783 100755 (executable)
@@ -44,9 +44,7 @@ module TestFtspC
 
         interface TimeSyncPacket<T32khz,uint32_t>;
 
-#ifdef LOW_POWER_LISTENING
         interface LowPowerListening;
-#endif
 
     }
 }
@@ -100,7 +98,7 @@ implementation
     event void RandomTimer.fired()
     {
 #ifdef LOW_POWER_LISTENING
-        call LowPowerListening.setRxSleepInterval(&msg, LPL_INTERVAL);
+        call LowPowerListening.setRemoteWakeupInterval(&msg, LPL_INTERVAL);
 #endif
         if(locked && (call AMSend.send(4000, &msg, sizeof(test_ftsp_msg_t)) == SUCCESS)){
             call Leds.led2On();
@@ -116,9 +114,7 @@ implementation
     }
 
     event void RadioControl.startDone(error_t err) {
-#ifdef LOW_POWER_LISTENING
-        call LowPowerListening.setLocalSleepInterval(LPL_INTERVAL);
-#endif
+        call LowPowerListening.setLocalWakeupInterval(LPL_INTERVAL);
     }
     event void RadioControl.stopDone(error_t error){}
 }