diff options
author | King Kévin <kingkevin@cuvoodoo.info> | 2018-07-04 16:36:17 +0200 |
---|---|---|
committer | King Kévin <kingkevin@cuvoodoo.info> | 2018-07-04 17:55:20 +0200 |
commit | 4cbdc7cf18451833d0b058591227d7ac9b62e95c (patch) | |
tree | adc1718b33f403d15db677b4b9af9566e7ba0615 /firmware | |
parent | 86f48fc9623ec6e1a105ce407b707d76edb6269f (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.c | 4 |
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 */ |