Skip to content

Commit

Permalink
Update serialap.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasniesner authored May 7, 2024
1 parent c73c0ce commit 6436de8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ESP32_AP-Flasher/src/serialap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void APEnterEarlyReset() {
void setAPstate(bool isOnline, uint8_t state) {
apInfo.isOnline = isOnline;
apInfo.state = state;

#ifdef HAS_RGB_LED
CRGB colorMap[7] = {
CRGB::Orange,
CRGB::Green,
Expand All @@ -150,10 +150,9 @@ void setAPstate(bool isOnline, uint8_t state) {
CRGB::Red,
CRGB::YellowGreen};
rgbIdleColor = colorMap[state];
#ifdef BLE_ONLY
rgbIdleColor = CRGB::Green;
#endif
#ifdef HAS_RGB_LED
#ifdef BLE_ONLY
rgbIdleColor = CRGB::Green;
#endif
rgbIdlePeriod = (isOnline ? 767 : 255);
if (isOnline) rgbIdle();
#endif
Expand Down

0 comments on commit 6436de8

Please sign in to comment.