]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/LedsP.nc
Swapping HEAD and DEVEL branches
[tinyos-2.x.git] / tos / system / LedsP.nc
index 69106ae333cddc0acc47b1bddb5fcf5a4fb97e1e..a293657e0d62216ccc08b00a91e911719612df1e 100644 (file)
@@ -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;
       }
     }