From b59fa2da28e13d4b38ff799bc330dd6291a49ff7 Mon Sep 17 00:00:00 2001 From: mux Date: Mon, 6 Jan 2014 06:41:56 +0200 Subject: Fix LED pin enum * Fix LED pin enum, first one should start at 1 * Fix LED initialization typo --- stm/led.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stm/led.c') diff --git a/stm/led.c b/stm/led.c index 9809c2177..19ce99cec 100644 --- a/stm/led.c +++ b/stm/led.c @@ -63,8 +63,8 @@ void led_init(void) { /* Turn off LEDs */ PYB_LED_OFF(PYB_LED1_PORT, PYB_LED1_PIN); PYB_LED_OFF(PYB_LED2_PORT, PYB_LED2_PIN); - PYB_LED_OFF(PYB_LED3_PORT, PYB_LED1_PIN); - PYB_LED_OFF(PYB_LED4_PORT, PYB_LED2_PIN); + PYB_LED_OFF(PYB_LED3_PORT, PYB_LED3_PIN); + PYB_LED_OFF(PYB_LED4_PORT, PYB_LED4_PIN); /* Initialize LEDs */ GPIO_InitStructure.GPIO_Pin = PYB_LED1_PIN; -- cgit v1.2.3