commit | 4cbdc7cf18451833d0b058591227d7ac9b62e95c | [log] [tgz] |
---|---|---|
author | King Kévin <kingkevin@cuvoodoo.info> | Wed Jul 04 16:36:17 2018 +0200 |
committer | King Kévin <kingkevin@cuvoodoo.info> | Wed Jul 04 17:55:20 2018 +0200 |
tree | adc1718b33f403d15db677b4b9af9566e7ba0615 | |
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
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 @@ ASSERT(led < PIO_LISTSIZE(pinsLeds)); if (on) - PIO_Set(&pinsLeds[led]); - else PIO_Clear(&pinsLeds[led]); + else + PIO_Set(&pinsLeds[led]); } /* LED blinking code */