mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Added option to disable update check. #255
This commit is contained in:
parent
a81d1b843d
commit
8bdfd214b5
8 changed files with 23 additions and 7 deletions
4
Web.cpp
4
Web.cpp
|
|
@ -2212,10 +2212,10 @@ void Web::begin() {
|
|||
HTTPMethod method = server.method();
|
||||
if (method == HTTP_POST || method == HTTP_PUT) {
|
||||
// Parse out all the inputs.
|
||||
if (obj.containsKey("hostname") || obj.containsKey("ssdpBroadcast")) {
|
||||
if (obj.containsKey("hostname") || obj.containsKey("ssdpBroadcast") || obj.containsKey("checkForUpdate")) {
|
||||
settings.fromJSON(obj);
|
||||
settings.save();
|
||||
net.updateHostname();
|
||||
if(obj.containsKey("hostname")) net.updateHostname();
|
||||
}
|
||||
if (obj.containsKey("ntpServer") || obj.containsKey("ntpServer")) {
|
||||
settings.NTP.fromJSON(obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue