[Tinyos-commits] CVS: tinyos-1.x/tos/platform/pc LedsM.nc,1.2,1.3
Victor Shnayder
shnayder at users.sourceforge.net
Mon Sep 19 08:20:54 PDT 2005
Update of /cvsroot/tinyos/tinyos-1.x/tos/platform/pc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11895
Modified Files:
LedsM.nc
Log Message:
Fixed Led PowerState bug.
Index: LedsM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tos/platform/pc/LedsM.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** LedsM.nc 29 Oct 2004 02:08:21 -0000 1.2
--- LedsM.nc 19 Sep 2005 15:20:52 -0000 1.3
***************
*** 193,196 ****
--- 193,209 ----
dbg(DBG_LED, "LEDS: Green %s.\n", (ledsNum & GREEN_BIT) ? "on" : "off");
dbg(DBG_LED, "LEDS: Yellow %s.\n", (ledsNum & YELLOW_BIT) ? "on" : "off");
+
+ if (ledsNum & RED_BIT)
+ call PowerState.redOn();
+ else
+ call PowerState.redOff();
+ if (ledsNum & GREEN_BIT)
+ call PowerState.greenOn();
+ else
+ call PowerState.greenOff();
+ if (ledsNum & YELLOW_BIT)
+ call PowerState.yellowOn();
+ else
+ call PowerState.yellowOff();
atomic {
More information about the Tinyos-commits
mailing list