mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-07 05:01:39 +02:00
fix #390 geo location was not saved - wrong length of config struct was used while storing values
This commit is contained in:
parent
c467eead6b
commit
6fc5fb75b2
2 changed files with 5 additions and 4 deletions
|
@ -314,7 +314,7 @@ void webApi::getIndex(JsonObject obj) {
|
|||
getMenu(obj.createNestedObject(F("menu")));
|
||||
getSysInfo(obj.createNestedObject(F("system")));
|
||||
getStatistics(obj.createNestedObject(F("statistics")));
|
||||
obj["refresh_interval"] = SEND_INTERVAL;
|
||||
obj["refresh_interval"] = mConfig->sendInterval;
|
||||
|
||||
JsonArray inv = obj.createNestedArray(F("inverter"));
|
||||
Inverter<> *iv;
|
||||
|
@ -373,7 +373,7 @@ void webApi::getLive(JsonObject obj) {
|
|||
getMenu(obj.createNestedObject(F("menu")));
|
||||
getSysInfo(obj.createNestedObject(F("system")));
|
||||
JsonArray invArr = obj.createNestedArray(F("inverter"));
|
||||
obj["refresh_interval"] = SEND_INTERVAL;
|
||||
obj["refresh_interval"] = mConfig->sendInterval;
|
||||
|
||||
uint8_t list[] = {FLD_UAC, FLD_IAC, FLD_PAC, FLD_F, FLD_PF, FLD_T, FLD_YT, FLD_YD, FLD_PDC, FLD_EFF, FLD_Q};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue