mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
formatting
This commit is contained in:
@@ -260,7 +260,7 @@ char * Helpers::render_value(char * result, const double value, const int8_t for
|
|||||||
result[0] = '-';
|
result[0] = '-';
|
||||||
result++;
|
result++;
|
||||||
whole = -whole;
|
whole = -whole;
|
||||||
v = -v;
|
v = -v;
|
||||||
}
|
}
|
||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
lltoa(whole, result, 10);
|
lltoa(whole, result, 10);
|
||||||
|
|||||||
@@ -1495,10 +1495,9 @@ void System::get_value_json(JsonObject output, const std::string & circuit, cons
|
|||||||
if (circuit.length()) {
|
if (circuit.length()) {
|
||||||
output["circuit"] = circuit;
|
output["circuit"] = circuit;
|
||||||
}
|
}
|
||||||
output["readable"] = true;
|
output["readable"] = true;
|
||||||
output["writeable"] =
|
output["writeable"] = (name == "showerTimer" || name == "showerAlert" || name == "enabled" || name == "hideLed" || name == "analogEnabled");
|
||||||
(name == "showerTimer" || name == "showerAlert" || name == "enabled" || name == "hideLed" || name == "analogEnabled");
|
output["visible"] = true;
|
||||||
output["visible"] = true;
|
|
||||||
if (val.is<bool>()) {
|
if (val.is<bool>()) {
|
||||||
output["value"] = val.as<bool>();
|
output["value"] = val.as<bool>();
|
||||||
output["type"] = "boolean";
|
output["type"] = "boolean";
|
||||||
|
|||||||
Reference in New Issue
Block a user