OTA lock fully working

This commit is contained in:
cschwinne 2016-11-27 21:37:00 +01:00
parent 123ab66b31
commit c88b9d6143
4 changed files with 3 additions and 2 deletions

View File

@ -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?

View File

@ -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;

View File

@ -130,6 +130,8 @@ void wledInit()
strip.Begin();
colorUpdated(0);
pinMode(buttonPin, INPUT_PULLUP);
Serial.println(otapass);
}
void initAP(){

View File

@ -119,7 +119,6 @@ void handleNightlight()
}
}
float nper = (millis() - nightlightStartTime)/((float)nightlightDelayMs);
Serial.println(nper);
if (nper >= 1)
{
nightlightActive = false;