aboutsummaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2018-07-04 16:36:17 +0200
committerKing Kévin <kingkevin@cuvoodoo.info>2018-07-04 17:55:20 +0200
commit4cbdc7cf18451833d0b058591227d7ac9b62e95c (patch)
treeadc1718b33f403d15db677b4b9af9566e7ba0615 /firmware
parent86f48fc9623ec6e1a105ce407b707d76edb6269f (diff)
fix LED switching on/off
In the SIMtrace and QMOD schematics the LEDs are connected to +3.3V. Thus to switch the LED on we need to set the pin low. Change-Id: Id8cc27e6f0b6556ba5e7ea4d254dd0fe59042a0c
Diffstat (limited to 'firmware')
-rw-r--r--firmware/libboard/common/source/led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libboard/common/source/led.c b/firmware/libboard/common/source/led.c
index 540f031..00082e2 100644
--- a/firmware/libboard/common/source/led.c
+++ b/firmware/libboard/common/source/led.c
@@ -16,9 +16,9 @@ static void led_set(enum led led, int on)
ASSERT(led < PIO_LISTSIZE(pinsLeds));
if (on)
- PIO_Set(&pinsLeds[led]);
- else
PIO_Clear(&pinsLeds[led]);
+ else
+ PIO_Set(&pinsLeds[led]);
}
/* LED blinking code */