From: sallai Date: Thu, 24 Apr 2008 22:04:10 +0000 (+0000) Subject: disable LPL by default, use CFLAGS+=-DLOW_POWER_LISTENING in the Makefile to enable LPL X-Git-Tag: release_tinyos_2_1_0_0~451 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=c6513cff18e06fa63a6583845795d365e9284e26 disable LPL by default, use CFLAGS+=-DLOW_POWER_LISTENING in the Makefile to enable LPL --- 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;