Skip to content

Commit

Permalink
Remove debug info from web UI (added in previous commit).
Browse files Browse the repository at this point in the history
  • Loading branch information
anyuta1166 committed Apr 20, 2020
1 parent db22838 commit 46fa9be
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
14 changes: 0 additions & 14 deletions watermeter/core.ino
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ String returnRssiStr() {
return rssi;
}

String returnColdCircuitStr() {
String c = "Cold circuit: ";
if (coldState == LOW) c += "closed";
else c+= "open";
return c;
}

String returnHotCircuitStr() {
String c = "Hot circuit: ";
if (hotState == LOW) c += "closed";
else c+= "open";
return c;
}

/* Init PIN */
void initPin() {
pinMode(HOT_PIN, INPUT_PULLUP);
Expand Down
2 changes: 1 addition & 1 deletion watermeter/watermeter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern "C" {

/* Name and Version */
#define PLATFORM "Wemos D1 mini & Micro SD"
#define MODULE_VERSION "v2.2"
#define MODULE_VERSION "v2.2.1"
#define MODULE_NAME "WaterMeter " MODULE_VERSION
#define WEB_WATERMETER_FIRST_NAME "Water"
#define WEB_WATERMETER_LAST_NAME "Meter"
Expand Down
6 changes: 0 additions & 6 deletions watermeter/web.ino
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,6 @@ String htmlLogo() {
s += "<p>Uptime: ";
s += localUptime();
s += "</p>\r\n";
s += "<p>";
s += returnColdCircuitStr();
s += "</p>\r\n";
s += "<p>";
s += returnHotCircuitStr();
s += "</p>\r\n";
s += "<p>" + returnVccStr() + ". " + returnRssiStr() + "</p>";
s += "<p>Local time: ";
s += localTimeStr();
Expand Down

0 comments on commit 46fa9be

Please sign in to comment.