Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Dec 20, 2024
1 parent b854c77 commit 3e3e10e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ char * Helpers::render_value(char * result, const double value, const int8_t for
result[0] = '-';
result++;
whole = -whole;
v = -v;
v = -v;
}
#ifndef EMSESP_STANDALONE
lltoa(whole, result, 10);
Expand Down
7 changes: 3 additions & 4 deletions src/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1495,10 +1495,9 @@ void System::get_value_json(JsonObject output, const std::string & circuit, cons
if (circuit.length()) {
output["circuit"] = circuit;
}
output["readable"] = true;
output["writeable"] =
(name == "showerTimer" || name == "showerAlert" || name == "enabled" || name == "hideLed" || name == "analogEnabled");
output["visible"] = true;
output["readable"] = true;
output["writeable"] = (name == "showerTimer" || name == "showerAlert" || name == "enabled" || name == "hideLed" || name == "analogEnabled");
output["visible"] = true;
if (val.is<bool>()) {
output["value"] = val.as<bool>();
output["type"] = "boolean";
Expand Down

0 comments on commit 3e3e10e

Please sign in to comment.