nucleo-f4x1re User LEDS: Issue #51 reports compilation problems with stm32_userled.c. Reported by Gappi92.
This commit is contained in:
parent
4d46979a6f
commit
ff2b54a5e0
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user