v0.9.373
This commit is contained in:
@@ -286,7 +286,7 @@ template <class T> int Config::eepromRead(int ee, T& value) {
|
||||
void Config::reset(){
|
||||
setDefaults();
|
||||
eepromWrite(EEPROM_START, store);
|
||||
delay(100);
|
||||
delay(500);
|
||||
ESP.restart();
|
||||
}
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ class Config {
|
||||
if (strcmp(field, value) == 0 && !force) return;
|
||||
strlcpy(field, value, N);
|
||||
size_t address = getAddr(field);
|
||||
for (size_t i = 0; i < strlen(field); i++) EEPROM.write(address + i, field[i]);
|
||||
for (size_t i = 0; i <= strlen(field); i++) EEPROM.write(address + i, field[i]);
|
||||
if(commit)
|
||||
EEPROM.commit();
|
||||
}
|
||||
|
||||
@@ -840,7 +840,7 @@ void handleHTTPArgs(AsyncWebServerRequest * request) {
|
||||
if (request->hasArg("next")) { player.next(); commandFound=true; }
|
||||
if (request->hasArg("volm")) { player.stepVol(false); commandFound=true; }
|
||||
if (request->hasArg("volp")) { player.stepVol(true); commandFound=true; }
|
||||
if (request->hasArg("reset")) { config.reset(); commandFound=true; }
|
||||
if (request->hasArg("reset")) { request->redirect("/"); request->send(200); config.reset(); return; }
|
||||
if (request->hasArg("trebble") && request->hasArg("middle") && request->hasArg("bass")) {
|
||||
AsyncWebParameter* pt = request->getParam("trebble", request->method() == HTTP_POST);
|
||||
AsyncWebParameter* pm = request->getParam("middle", request->method() == HTTP_POST);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef options_h
|
||||
#define options_h
|
||||
|
||||
#define YOVERSION "0.9.370"
|
||||
#define YOVERSION "0.9.373"
|
||||
|
||||
/*******************************************************
|
||||
DO NOT EDIT THIS FILE.
|
||||
|
||||
Reference in New Issue
Block a user