mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
fix cpplint complaining
This commit is contained in:
@@ -169,8 +169,6 @@ void Mixing::publish_values() {
|
|||||||
// creates JSON doc from values
|
// creates JSON doc from values
|
||||||
// returns false if empty
|
// returns false if empty
|
||||||
bool Mixing::export_values(JsonObject & output) {
|
bool Mixing::export_values(JsonObject & output) {
|
||||||
char s[5]; // for formatting strings
|
|
||||||
|
|
||||||
switch (type_) {
|
switch (type_) {
|
||||||
case Type::HC:
|
case Type::HC:
|
||||||
output["type"] = "hc";
|
output["type"] = "hc";
|
||||||
@@ -181,6 +179,7 @@ bool Mixing::export_values(JsonObject & output) {
|
|||||||
output["flowSetTemp"] = flowSetTemp_;
|
output["flowSetTemp"] = flowSetTemp_;
|
||||||
}
|
}
|
||||||
if (Helpers::hasValue(pump_)) {
|
if (Helpers::hasValue(pump_)) {
|
||||||
|
char s[5]; // for formatting strings
|
||||||
output["pumpStatus"] = Helpers::render_value(s, pump_, EMS_VALUE_BOOL);
|
output["pumpStatus"] = Helpers::render_value(s, pump_, EMS_VALUE_BOOL);
|
||||||
}
|
}
|
||||||
if (Helpers::hasValue(status_)) {
|
if (Helpers::hasValue(status_)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user