1
0
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:
Brian Webb 2017-06-24 15:11:41 -07:00
parent 481d9abfd8
commit b47a3ad393
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -62,7 +62,7 @@ static const struct pios_gpio pios_leds_gpsp[] = {
.GPIO_Speed = GPIO_Speed_Level_1,
},
},
.active_low = false
.active_low = true
},
};