Fixed passwords not clearable

This commit is contained in:
cschwinne 2020-09-10 11:01:05 +02:00
parent 5896b1eb71
commit 2716f4cbe9
4 changed files with 10 additions and 3 deletions

View File

@ -2,6 +2,11 @@
### Development versions after the 0.10.2 release ### Development versions after the 0.10.2 release
#### Build 2009100
- Fixed sunrise mode not reinitializing
- Fixed passwords not clearable
#### Build 2009070 #### Build 2009070
- New Segments are now initialized with default speed and intensity - New Segments are now initialized with default speed and intensity

View File

@ -233,6 +233,7 @@ void handleNightlight()
colNlT[1] = effectSpeed; colNlT[1] = effectSpeed;
colNlT[2] = effectPalette; colNlT[2] = effectPalette;
strip.setMode(strip.getMainSegmentId(), FX_MODE_STATIC); //make sure seg runtime is reset if left in sunrise mode
effectCurrent = FX_MODE_SUNRISE; effectCurrent = FX_MODE_SUNRISE;
effectSpeed = nightlightDelayMins; effectSpeed = nightlightDelayMins;
effectPalette = 0; effectPalette = 0;

View File

@ -22,7 +22,8 @@ bool isAsterisksOnly(const char* str, byte maxLen)
if (str[i] == 0) break; if (str[i] == 0) break;
if (str[i] != '*') return false; if (str[i] != '*') return false;
} }
return true; //at this point the password contains asterisks only
return (str[0] != 0); //false on empty string
} }

View File

@ -8,7 +8,7 @@
*/ */
// version code in format yymmddb (b = daily build) // version code in format yymmddb (b = daily build)
#define VERSION 2009070 #define VERSION 2009100
// ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS). // ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).