]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/LedsP.nc
Update tos-bsl for win32 python
[tinyos-2.x.git] / tos / system / LedsP.nc
index 69106ae333cddc0acc47b1bddb5fcf5a4fb97e1e..3a3d4814000fde75b1613638e4cdc421843d3202 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 
-/*                                                                     tab:4
+/*
  * "Copyright (c) 2000-2005 The Regents of the University  of California.  
  * All rights reserved.
  *
@@ -30,7 +30,7 @@
  * @date   March 21, 2005
  */
 
-module LedsP {
+module LedsP @safe() {
   provides {
     interface Init;
     interface Leds;
@@ -109,13 +109,13 @@ implementation {
     uint8_t rval;
     atomic {
       rval = 0;
-      if (call Led0.get()) {
+      if (!call Led0.get()) {
        rval |= LEDS_LED0;
       }
-      if (call Led1.get()) {
+      if (!call Led1.get()) {
        rval |= LEDS_LED1;
       }
-      if (call Led2.get()) {
+      if (!call Led2.get()) {
        rval |= LEDS_LED2;
       }
     }