mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Swapped LED On and Off to proper set/reset function.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@75 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
313f3cceff
commit
38d98a26a6
@ -62,7 +62,7 @@ void PIOS_LED_Init(void)
|
||||
*/
|
||||
void PIOS_LED_On(LedTypeDef LED)
|
||||
{
|
||||
LED_GPIO_PORT[LED]->BSRR = LED_GPIO_PIN[LED];
|
||||
LED_GPIO_PORT[LED]->BRR = LED_GPIO_PIN[LED];
|
||||
}
|
||||
|
||||
|
||||
@ -72,7 +72,7 @@ void PIOS_LED_On(LedTypeDef LED)
|
||||
*/
|
||||
void PIOS_LED_Off(LedTypeDef LED)
|
||||
{
|
||||
LED_GPIO_PORT[LED]->BRR = LED_GPIO_PIN[LED];
|
||||
LED_GPIO_PORT[LED]->BSRR = LED_GPIO_PIN[LED];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user