summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/firmware/src/led.c')
-rw-r--r--openpcd/firmware/src/led.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/openpcd/firmware/src/led.c b/openpcd/firmware/src/led.c
index 7f5db72..88e1026 100644
--- a/openpcd/firmware/src/led.c
+++ b/openpcd/firmware/src/led.c
@@ -43,13 +43,10 @@ int led_toggle(int led)
if (on == -1)
return -1;
- if (on) {
- DEBUGP("led%d on, switching off\r\n", led);
+ if (on)
led_switch(led, 0);
- } else {
- DEBUGP("led%d off, switching on\r\n", led);
+ else
led_switch(led, 1);
- }
}
void led_init(void)
personal git repositories of Harald Welte. Your mileage may vary