]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
disable LPL by default, use CFLAGS+=-DLOW_POWER_LISTENING in the Makefile to enable LPL
authorsallai <sallai>
Thu, 24 Apr 2008 22:04:10 +0000 (22:04 +0000)
committersallai <sallai>
Thu, 24 Apr 2008 22:04:10 +0000 (22:04 +0000)
tos/chips/rf230/DefaultMacC.nc

index cb9e3b11ad78c8ed9a6779a6efcd4aa7fe5fe20f..afd5bda16f78f42cf417cefebf9104438e08769f 100644 (file)
@@ -68,7 +68,11 @@ implementation
        RF230LayerC.lastTouch -> DefaultPacketC.lastTouch;
 
        components ActiveMessageLayerC;
+#if defined(LOW_POWER_LISTENING)
        components LowPowerListeningLayerC;
+#else  
+       components new DummyLayerC() as LowPowerListeningLayerC;
+#endif 
        components MessageBufferLayerC;
        components UniqueLayerC;
        components TrafficMonitorLayerC;