From 4cbdc7cf18451833d0b058591227d7ac9b62e95c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Wed, 4 Jul 2018 16:36:17 +0200 Subject: [PATCH] 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 --- firmware/libboard/common/source/led.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/libboard/common/source/led.c b/firmware/libboard/common/source/led.c index 540f0316..00082e27 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 */