Fixed secondary white value setting having same value as white default
Changed default notification receive behavior to be like pre0.5.0 if no settings are changed
This commit is contained in:
parent
29d786ec86
commit
9aebaa78fa
@ -30,7 +30,7 @@
|
||||
#include "WS2812FX.h"
|
||||
|
||||
//version in format yymmddb (b = daily build)
|
||||
#define VERSION 1802222
|
||||
#define VERSION 1802231
|
||||
const String versionString = "0.5.0";
|
||||
|
||||
//AP and OTA default passwords (change them!)
|
||||
|
@ -291,6 +291,10 @@ void loadSettingsFromEEPROM(bool first)
|
||||
if (EEPROM.read(i) == 0) break;
|
||||
cssFont += char(EEPROM.read(i));
|
||||
}
|
||||
} else //keep receiving notification behavior from pre0.5.0 after update
|
||||
{
|
||||
receiveNotificationColor = receiveNotificationBrightness;
|
||||
receiveNotificationEffects = receiveNotificationBrightness;
|
||||
}
|
||||
receiveNotifications = (receiveNotificationBrightness || receiveNotificationColor || receiveNotificationEffects);
|
||||
|
||||
|
@ -148,7 +148,7 @@ String getSettings(uint8_t subPage)
|
||||
resp += ds + "CSECR" + v + col_sec_s[0] +";";
|
||||
resp += ds + "CSECG" + v + col_sec_s[1] +";";
|
||||
resp += ds + "CSECB" + v + col_sec_s[2] +";";
|
||||
resp += ds + "CSECW" + v + white_s +";";
|
||||
resp += ds + "CSECW" + v + white_sec_s +";";
|
||||
resp += ds + "BOOTN" + c + turnOnAtBoot +";";
|
||||
resp += ds + "BOOTP" + v + bootPreset +";";
|
||||
resp += ds + "FXDEF" + v + effectDefault +";";
|
||||
|
Loading…
Reference in New Issue
Block a user