mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 04:38:59 +00:00
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
1 changed files with 2 additions and 5 deletions
|
|
@ -183,7 +183,7 @@ void board_userled(int led, bool ledon)
|
|||
{
|
||||
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)
|
||||
{
|
||||
if (led == 1)
|
||||
{
|
||||
stm32_gpiowrite(GPIO_LD2, (ledset & BOARD_LD2_BIT) != 0);
|
||||
}
|
||||
stm32_gpiowrite(GPIO_LD2, (ledset & BOARD_LD2_BIT) != 0);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue