From 17e44e1dcaceb2633bb5f97ab271734dc3a5d03b Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 20 Sep 2020 16:54:31 +0200 Subject: [PATCH] fix cpplint complaining --- src/devices/mixing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/devices/mixing.cpp b/src/devices/mixing.cpp index ca6a901e3..a92d8ab78 100644 --- a/src/devices/mixing.cpp +++ b/src/devices/mixing.cpp @@ -169,8 +169,6 @@ void Mixing::publish_values() { // creates JSON doc from values // returns false if empty bool Mixing::export_values(JsonObject & output) { - char s[5]; // for formatting strings - switch (type_) { case Type::HC: output["type"] = "hc"; @@ -181,6 +179,7 @@ bool Mixing::export_values(JsonObject & output) { output["flowSetTemp"] = flowSetTemp_; } if (Helpers::hasValue(pump_)) { + char s[5]; // for formatting strings output["pumpStatus"] = Helpers::render_value(s, pump_, EMS_VALUE_BOOL); } if (Helpers::hasValue(status_)) {