mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev
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++;
|
||||
whole = -whole;
|
||||
v = -v;
|
||||
v = -v;
|
||||
}
|
||||
#ifndef EMSESP_STANDALONE
|
||||
lltoa(whole, result, 10);
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user