Various fixes
This commit is contained in:
parent
7684fb83d6
commit
03516e11f7
15
CHANGELOG.md
15
CHANGELOG.md
@ -1,6 +1,17 @@
|
|||||||
## WLED changelog
|
## WLED changelog
|
||||||
|
|
||||||
### WLED version 0.11.0
|
### Development versions after 0.11.0 release
|
||||||
|
|
||||||
|
#### Build 2012100
|
||||||
|
|
||||||
|
- Fixed multi-segment preset cycle
|
||||||
|
- Fixed EEPROM (pre-0.11 settings) not cleared on factory reset
|
||||||
|
- Fixed an issue with intermittent crashes on FX change (PR #1465)
|
||||||
|
- Added function to know if strip is updating (PR #1466)
|
||||||
|
- Fixed using colorwheel sliding the UI (PR #1459)
|
||||||
|
- Fixed analog clock settings not saving (PR #1448)
|
||||||
|
- Added Temperature palette (PR #1430)
|
||||||
|
- Added Candy cane FX (PR #1445)
|
||||||
|
|
||||||
#### Build 2012020
|
#### Build 2012020
|
||||||
|
|
||||||
@ -11,6 +22,8 @@
|
|||||||
|
|
||||||
- Fixed compilation for analog (PWM) LEDs
|
- Fixed compilation for analog (PWM) LEDs
|
||||||
|
|
||||||
|
### WLED version 0.11.0
|
||||||
|
|
||||||
#### Build 2011290
|
#### Build 2011290
|
||||||
|
|
||||||
- Release of WLED 0.11.0 "Mirai"
|
- Release of WLED 0.11.0 "Mirai"
|
||||||
|
@ -235,6 +235,7 @@ void userLoop();
|
|||||||
void applyMacro(byte index);
|
void applyMacro(byte index);
|
||||||
void deEEP();
|
void deEEP();
|
||||||
void deEEPSettings();
|
void deEEPSettings();
|
||||||
|
void clearEEPROM();
|
||||||
|
|
||||||
//wled_serial.cpp
|
//wled_serial.cpp
|
||||||
void handleSerial();
|
void handleSerial();
|
||||||
|
@ -107,7 +107,7 @@ void colorUpdated(int callMode)
|
|||||||
notify(callMode);
|
notify(callMode);
|
||||||
|
|
||||||
//set flag to update blynk and mqtt
|
//set flag to update blynk and mqtt
|
||||||
if (callMode != NOTIFIER_CALL_MODE_PRESET_CYCLE) interfaceUpdateCallMode = callMode;
|
interfaceUpdateCallMode = callMode;
|
||||||
} else {
|
} else {
|
||||||
if (nightlightActive && !nightlightActiveOld &&
|
if (nightlightActive && !nightlightActiveOld &&
|
||||||
callMode != NOTIFIER_CALL_MODE_NOTIFICATION &&
|
callMode != NOTIFIER_CALL_MODE_NOTIFICATION &&
|
||||||
@ -303,10 +303,10 @@ void handleNightlight()
|
|||||||
if (bri == 0 || nightlightActive) return;
|
if (bri == 0 || nightlightActive) return;
|
||||||
|
|
||||||
if (presetCycCurr < presetCycleMin || presetCycCurr > presetCycleMax) presetCycCurr = presetCycleMin;
|
if (presetCycCurr < presetCycleMin || presetCycCurr > presetCycleMax) presetCycCurr = presetCycleMin;
|
||||||
applyPreset(presetCycCurr);
|
applyPreset(presetCycCurr); //this handles colorUpdated() for us
|
||||||
presetCycCurr++;
|
presetCycCurr++;
|
||||||
if (presetCycCurr > 250) presetCycCurr = 1;
|
if (presetCycCurr > 250) presetCycCurr = 1;
|
||||||
colorUpdated(NOTIFIER_CALL_MODE_PRESET_CYCLE);
|
interfaceUpdateCallMode = 0; //disable updates to MQTT and Blynk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,6 +266,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
|
|||||||
if (request->hasArg(F("RS"))) //complete factory reset
|
if (request->hasArg(F("RS"))) //complete factory reset
|
||||||
{
|
{
|
||||||
WLED_FS.format();
|
WLED_FS.format();
|
||||||
|
clearEEPROM();
|
||||||
serveMessage(request, 200, F("All Settings erased."), F("Connect to WLED-AP to setup again"),255);
|
serveMessage(request, 200, F("All Settings erased."), F("Connect to WLED-AP to setup again"),255);
|
||||||
doReboot = true;
|
doReboot = true;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 2012020
|
#define VERSION 2012100
|
||||||
|
|
||||||
//uncomment this if you have a "my_config.h" file you'd like to use
|
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||||
//#define WLED_USE_MY_CONFIG
|
//#define WLED_USE_MY_CONFIG
|
||||||
|
@ -36,6 +36,20 @@
|
|||||||
//21-> 0.10.1p
|
//21-> 0.10.1p
|
||||||
//22-> 2009260
|
//22-> 2009260
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Erase all (pre 0.11) configuration data on factory reset
|
||||||
|
*/
|
||||||
|
void clearEEPROM()
|
||||||
|
{
|
||||||
|
EEPROM.begin(EEPSIZE);
|
||||||
|
for (int i = 0; i < EEPSIZE; i++)
|
||||||
|
{
|
||||||
|
EEPROM.write(i, 0);
|
||||||
|
}
|
||||||
|
EEPROM.end();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void readStringFromEEPROM(uint16_t pos, char* str, uint16_t len)
|
void readStringFromEEPROM(uint16_t pos, char* str, uint16_t len)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < len; ++i)
|
for (int i = 0; i < len; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user