mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
LP-537 The LED should be configured active low on the GPSV9.
This commit is contained in:
parent
481d9abfd8
commit
b47a3ad393
@ -143,7 +143,7 @@ static void gpspSystemTask(__attribute__((unused)) void *parameters)
|
||||
PIOS_WDG_UpdateFlag(PIOS_WDG_SYSTEM);
|
||||
#endif
|
||||
uint32_t ledPeriod = PIOS_DELAY_DiffuS(ledTimer) / 1000;
|
||||
if (ledPeriod < HB_LED_BLINK_ON_PERIOD_MS) {
|
||||
if (ledPeriod < HB_LED_BLINK_OFF_PERIOD_MS) {
|
||||
PIOS_LED_Off(PIOS_LED_HEARTBEAT);
|
||||
} else {
|
||||
PIOS_LED_On(PIOS_LED_HEARTBEAT);
|
||||
|
@ -62,7 +62,7 @@ static const struct pios_gpio pios_leds_gpsp[] = {
|
||||
.GPIO_Speed = GPIO_Speed_Level_1,
|
||||
},
|
||||
},
|
||||
.active_low = false
|
||||
.active_low = true
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user