OTA lock fully working
This commit is contained in:
parent
123ab66b31
commit
c88b9d6143
1
TODO.txt
1
TODO.txt
@ -9,7 +9,6 @@ implement discrete range color setter
|
||||
implement discrete single color setter
|
||||
svg icons in html
|
||||
notifier function -> send get request
|
||||
nightlight function -> turns off after set time (+implement fading)
|
||||
add preferred colors to settings -> quickly t. UI, button select,
|
||||
use iframe for settings, seperate tabs for wifi and application confg
|
||||
use iframe for all adv. features?
|
||||
|
@ -143,6 +143,7 @@ void loadSettingsFromEEPROM()
|
||||
transitionDelay = ((EEPROM.read(253) << 0) & 0xFF) + ((EEPROM.read(254) << 8) & 0xFF00);
|
||||
transitionDelay_old = transitionDelay;
|
||||
bri_n = EEPROM.read(255);
|
||||
otapass = "";
|
||||
for (int i = 256; i < 288; ++i)
|
||||
{
|
||||
if (EEPROM.read(i) == 0) break;
|
||||
|
@ -130,6 +130,8 @@ void wledInit()
|
||||
strip.Begin();
|
||||
colorUpdated(0);
|
||||
pinMode(buttonPin, INPUT_PULLUP);
|
||||
|
||||
Serial.println(otapass);
|
||||
}
|
||||
|
||||
void initAP(){
|
||||
|
@ -119,7 +119,6 @@ void handleNightlight()
|
||||
}
|
||||
}
|
||||
float nper = (millis() - nightlightStartTime)/((float)nightlightDelayMs);
|
||||
Serial.println(nper);
|
||||
if (nper >= 1)
|
||||
{
|
||||
nightlightActive = false;
|
||||
|
Loading…
Reference in New Issue
Block a user