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.setBrightness(20);
|
||||
# define ErrorIndicatorON() \
|
||||
leds[0] = CRGB::Red; \
|
||||
leds[0] = CRGB::Orange; \
|
||||
FastLED.show()
|
||||
# define ErrorIndicatorOFF() \
|
||||
leds[0] = CRGB::Black; \
|
||||
|
||||
+2
-2
@@ -1250,8 +1250,8 @@ void setup_wifimanager(bool reset_settings) {
|
||||
}
|
||||
# endif
|
||||
|
||||
ErrorIndicatorON();
|
||||
InfoIndicatorON();
|
||||
ErrorIndicatorON();
|
||||
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
|
||||
//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);
|
||||
delay(5000);
|
||||
}
|
||||
ErrorIndicatorOFF();
|
||||
InfoIndicatorOFF();
|
||||
ErrorIndicatorOFF();
|
||||
}
|
||||
|
||||
displayPrint("Wifi connected");
|
||||
|
||||
Reference in new issue
Block a user