From b47a3ad39344db1d4db575857d9686ca04c3cde6 Mon Sep 17 00:00:00 2001 From: Brian Webb Date: Sat, 24 Jun 2017 15:11:41 -0700 Subject: [PATCH] LP-537 The LED should be configured active low on the GPSV9. --- flight/modules/gpsp/gpsdsysmod.c | 2 +- flight/targets/boards/gpsplatinum/board_hw_defs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/modules/gpsp/gpsdsysmod.c b/flight/modules/gpsp/gpsdsysmod.c index d7f009658..1586f1964 100644 --- a/flight/modules/gpsp/gpsdsysmod.c +++ b/flight/modules/gpsp/gpsdsysmod.c @@ -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); diff --git a/flight/targets/boards/gpsplatinum/board_hw_defs.c b/flight/targets/boards/gpsplatinum/board_hw_defs.c index 7b19737f4..95f43d2f0 100644 --- a/flight/targets/boards/gpsplatinum/board_hw_defs.c +++ b/flight/targets/boards/gpsplatinum/board_hw_defs.c @@ -62,7 +62,7 @@ static const struct pios_gpio pios_leds_gpsp[] = { .GPIO_Speed = GPIO_Speed_Level_1, }, }, - .active_low = false + .active_low = true }, };