// $Id$
-/* tab:4
+/*
* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* @date March 21, 2005
*/
-module LedsP {
+module LedsP @safe() {
provides {
interface Init;
interface Leds;
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;
}
}