Change Error color to orange on RGB (#1333)
And enable its display when entering the WM portal
This commit is contained in:
1 parent
c98511ba36
commit
66588149a8
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -460,7 +460,7 @@ CRGB leds[FASTLED_IND_NUM_LEDS];
|
|||||||
FastLED.addLeds<FASTLED_IND_TYPE, FASTLED_IND_DATA_GPIO>(leds, FASTLED_IND_NUM_LEDS); \
|
FastLED.addLeds<FASTLED_IND_TYPE, FASTLED_IND_DATA_GPIO>(leds, FASTLED_IND_NUM_LEDS); \
|
||||||
FastLED.setBrightness(20);
|
FastLED.setBrightness(20);
|
||||||
# define ErrorIndicatorON() \
|
# define ErrorIndicatorON() \
|
||||||
leds[0] = CRGB::Red; \
|
leds[0] = CRGB::Orange; \
|
||||||
FastLED.show()
|
FastLED.show()
|
||||||
# define ErrorIndicatorOFF() \
|
# define ErrorIndicatorOFF() \
|
||||||
leds[0] = CRGB::Black; \
|
leds[0] = CRGB::Black; \
|
||||||
|
|||||||
+2
-2
@@ -1250,8 +1250,8 @@ void setup_wifimanager(bool reset_settings) {
|
|||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
ErrorIndicatorON();
|
|
||||||
InfoIndicatorON();
|
InfoIndicatorON();
|
||||||
|
ErrorIndicatorON();
|
||||||
Log.notice(F("Connect your phone to WIFI AP: %s with PWD: %s" CR), WifiManager_ssid, WifiManager_password);
|
Log.notice(F("Connect your phone to WIFI AP: %s with PWD: %s" CR), WifiManager_ssid, WifiManager_password);
|
||||||
//fetches ssid and pass and tries to connect
|
//fetches ssid and pass and tries to connect
|
||||||
//if it does not connect it starts an access point with the specified name
|
//if it does not connect it starts an access point with the specified name
|
||||||
@@ -1263,8 +1263,8 @@ void setup_wifimanager(bool reset_settings) {
|
|||||||
watchdogReboot(3);
|
watchdogReboot(3);
|
||||||
delay(5000);
|
delay(5000);
|
||||||
}
|
}
|
||||||
ErrorIndicatorOFF();
|
|
||||||
InfoIndicatorOFF();
|
InfoIndicatorOFF();
|
||||||
|
ErrorIndicatorOFF();
|
||||||
}
|
}
|
||||||
|
|
||||||
displayPrint("Wifi connected");
|
displayPrint("Wifi connected");
|
||||||
|
|||||||
Reference in new issue
Block a user