From c6513cff18e06fa63a6583845795d365e9284e26 Mon Sep 17 00:00:00 2001 From: sallai Date: Thu, 24 Apr 2008 22:04:10 +0000 Subject: [PATCH] disable LPL by default, use CFLAGS+=-DLOW_POWER_LISTENING in the Makefile to enable LPL --- tos/chips/rf230/DefaultMacC.nc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tos/chips/rf230/DefaultMacC.nc b/tos/chips/rf230/DefaultMacC.nc index cb9e3b11..afd5bda1 100644 --- a/tos/chips/rf230/DefaultMacC.nc +++ b/tos/chips/rf230/DefaultMacC.nc @@ -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; -- 2.39.2