Skip to content

Commit

Permalink
fix for /forceUpdate and custom URL
Browse files Browse the repository at this point in the history
  • Loading branch information
netmaniac committed Feb 18, 2020
1 parent 85c1f94 commit f9d7251
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Versions.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
NAMF 2020-15 ()
* /forceUpdate will now work with custom URL, until now it worked only with default

NAMF 2020-14 (2020-02-17)
* HECA support moved to src/sensors/heca
* started move webserver functions to separate file
Expand Down
6 changes: 3 additions & 3 deletions src/update.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ void updateFW(const String host, const String port, const String path) {
debug_out(port,DEBUG_MIN_INFO,1);
debug_out(path,DEBUG_MIN_INFO,1);
Serial.println(SOFTWARE_VERSION);

t_httpUpdate_return ret = tryUpdate(String(SOFTWARE_VERSION)+ String(" ") + esp_chipid() + String(" ") + "SDS" + String(" ") +
String(cfg::current_lang) + String(" ") + String(INTL_LANG) );
String ver = String(SOFTWARE_VERSION)+ String(" ") + esp_chipid() + String(" ") + "SDS" + String(" ") +
String(cfg::current_lang) + String(" ") + String(INTL_LANG);
t_httpUpdate_return ret = tryUpdate( host, port, path, ver);
verifyUpdate(ret);
};

Expand Down

0 comments on commit f9d7251

Please sign in to comment.