Skip to content

Commit

Permalink
(#679) changed LED scheme to not use full on red LED to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
knmcguire committed Feb 9, 2021
1 parent 8b0d1ab commit ca59d2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/src/lighthouse/lighthouse_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,27 +154,27 @@ TESTABLE_STATIC void initializeCalibDataFromStorage();
// LED timer
static xTimerHandle timer;
static StaticTimer_t timerBuffer;
static uint8_t ledInternalStatus = 2;
static lhSystemStatus_t ledInternalStatus = statusToEstimator;

static void ledTimer(xTimerHandle timer)
{
switch (systemStatus)
{
case 0:
case statusNotReceiving:
if(ledInternalStatus != systemStatus)
{
lighthouseCoreSetLeds(lh_led_on, lh_led_off, lh_led_off);
lighthouseCoreSetLeds(lh_led_off, lh_led_on, lh_led_off);
ledInternalStatus = systemStatus;
}
break;
case 1:
case statusMissingData:
if(ledInternalStatus != systemStatus)
{
lighthouseCoreSetLeds(lh_led_off, lh_led_on, lh_led_off);
lighthouseCoreSetLeds(lh_led_off, lh_led_slow_blink, lh_led_off);
ledInternalStatus = systemStatus;
}
break;
case 2:
case statusToEstimator:
if(ledInternalStatus != systemStatus)
{
lighthouseCoreSetLeds(lh_led_off, lh_led_off, lh_led_on);
Expand Down

0 comments on commit ca59d2a

Please sign in to comment.