Skip to content

Commit

Permalink
Fixed values being exposed as the wrong name, fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypoulter committed Sep 10, 2019
1 parent 9f63645 commit 54db232
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ void create_rapi_json(String &data)
if (volt > 0) {
doc["volt"] = volt;
}
doc["pilot"] = watthour_total;
doc["wh"] = temp1;
doc["temp1"] = temp2;
doc["temp2"] = temp3;
doc["temp3"] = pilot;
doc["pilot"] = pilot;
doc["wh"] = watthour_total;
doc["temp1"] = temp1;
doc["temp2"] = temp2;
doc["temp3"] = temp3;
doc["state"] = state;
doc["freeram"] = HAL.getFreeHeap();
doc["divertmode"] = divertmode;
Expand Down Expand Up @@ -268,7 +268,7 @@ update_rapi_values() {
}

void
handleRapiRead()
handleRapiRead()
{
Profile_Start(handleRapiRead);

Expand Down Expand Up @@ -382,7 +382,7 @@ handleRapiRead()

void on_rapi_event()
{
if(!strcmp(rapiSender.getToken(0), "$ST"))
if(!strcmp(rapiSender.getToken(0), "$ST"))
{
const char *val = rapiSender.getToken(1);
DBUGVAR(val);
Expand Down

0 comments on commit 54db232

Please sign in to comment.