Skip to content

Commit

Permalink
Silence unused-variable warning (ExpressLRS#2872)
Browse files Browse the repository at this point in the history
  • Loading branch information
awigen committed Sep 20, 2024
1 parent 58772f5 commit 5df9c55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/LED/devLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ static const uint8_t *_durations;
static uint8_t _count;
static uint8_t _counter = 0;
static bool hasRGBLeds = false;
#if defined(TARGET_TX)
static bool hasGBLeds = false;
#endif

static uint16_t updateLED()
{
Expand Down Expand Up @@ -141,6 +143,7 @@ static int timeout()
return updateLED();
}

#if !defined(TARGET_RX)
static void setPowerLEDs()
{
if (hasGBLeds)
Expand All @@ -166,6 +169,7 @@ static void setPowerLEDs()
}
}
}
#endif

static int event()
{
Expand Down

0 comments on commit 5df9c55

Please sign in to comment.