Browse Source

Fix wifi_led index in showStatus

fastled
Xose Pérez 7 years ago
parent
commit
91770f77db
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      code/espurna/led.ino

+ 3
- 3
code/espurna/led.ino View File

@ -48,12 +48,12 @@ void ledBlink(unsigned char id, unsigned long delayOff, unsigned long delayOn) {
void showStatus() { void showStatus() {
if (wifiConnected()) { if (wifiConnected()) {
if (WiFi.getMode() == WIFI_AP) { if (WiFi.getMode() == WIFI_AP) {
ledBlink(WIFI_LED, 2500, 2500);
ledBlink(WIFI_LED - 1, 2500, 2500);
} else { } else {
ledBlink(WIFI_LED, 4900, 100);
ledBlink(WIFI_LED - 1, 4900, 100);
} }
} else { } else {
ledBlink(WIFI_LED, 500, 500);
ledBlink(WIFI_LED - 1, 500, 500);
} }
} }
#endif #endif


Loading…
Cancel
Save