nucleo-f4x1re User LEDS: Issue #51 reports compilation problems with stm32_userled.c. Reported by Gappi92.

This commit is contained in:
Gregory Nutt 2017-06-01 06:44:24 -06:00
parent 4d46979a6f
commit ff2b54a5e0

View File

@ -183,7 +183,7 @@ void board_userled(int led, bool ledon)
{ {
if (led == 1) if (led == 1)
{ {
stm32_gpiowrite(GPIO_LD2, ldeon); stm32_gpiowrite(GPIO_LD2, ledon);
} }
} }
@ -193,10 +193,7 @@ void board_userled(int led, bool ledon)
void board_userled_all(uint8_t ledset) void board_userled_all(uint8_t ledset)
{ {
if (led == 1) stm32_gpiowrite(GPIO_LD2, (ledset & BOARD_LD2_BIT) != 0);
{
stm32_gpiowrite(GPIO_LD2, (ledset & BOARD_LD2_BIT) != 0);
}
} }
/**************************************************************************** /****************************************************************************