diff --git a/src/ESP32React/WiFiScanner.cpp b/src/ESP32React/WiFiScanner.cpp index 425992f98..743637faa 100644 --- a/src/ESP32React/WiFiScanner.cpp +++ b/src/ESP32React/WiFiScanner.cpp @@ -38,8 +38,8 @@ void WiFiScanner::listNetworks(AsyncWebServerRequest * request) { } else if (numNetworks == -1) { request->send(202); // special code to indicate scan in progress } else { - auto * response = new AsyncJsonResponse(false); - JsonObject root = response->getRoot(); + auto * response = new AsyncJsonResponse(false); + JsonObject root = response->getRoot(); root["networks"].to(); response->setLength(); request->send(response); diff --git a/src/core/roomcontrol.h b/src/core/roomcontrol.h index 765982135..741c3678d 100644 --- a/src/core/roomcontrol.h +++ b/src/core/roomcontrol.h @@ -34,7 +34,7 @@ class Roomctrl { static bool is_remote(const uint8_t hc) { return (hc < 4 && remotetemp_[hc] != EMS_VALUE_INT16_NOTSET); } - static void set_timeout(uint8_t t); + static void set_timeout(uint8_t t); private: static constexpr uint32_t SEND_INTERVAL = 15000; // 15 sec diff --git a/src/devices/thermostat.h b/src/devices/thermostat.h index e48f67a1a..f3c7a316f 100644 --- a/src/devices/thermostat.h +++ b/src/devices/thermostat.h @@ -304,7 +304,7 @@ class Thermostat : public EMSdevice { uint8_t instantstart; uint8_t coolstart; uint8_t coolondelay; - uint8_t cooloffdelay; + uint8_t cooloffdelay; // HybridHP uint8_t hybridStrategy_; // co2 = 1, cost = 2, temperature = 3, mix = 4 diff --git a/src/devices/water.cpp b/src/devices/water.cpp index 131aaf826..8a963fa02 100644 --- a/src/devices/water.cpp +++ b/src/devices/water.cpp @@ -362,7 +362,8 @@ bool Water::set_wwCircTc(const char * value, const int8_t id) { write_command(0x33B + dhw_, 4, b ? 0x01 : 0x00, 0x33B + dhw_); } else { // SM100 write_command(0x7A5, 4, b ? 0xFF : 0x00, 0x7A5); - } return true; + } + return true; } bool Water::set_wwKeepWarm(const char * value, const int8_t id) { diff --git a/src/web/WebSchedulerService.cpp b/src/web/WebSchedulerService.cpp index d18d5d8de..f632754fe 100644 --- a/src/web/WebSchedulerService.cpp +++ b/src/web/WebSchedulerService.cpp @@ -348,8 +348,8 @@ uint8_t WebSchedulerService::count_entities(bool cmd_only) { bool WebSchedulerService::command(const char * name, const std::string & command, const std::string & data) { std::string cmd = Helpers::toLower(command); if (cmd == "system/message") { - EMSESP::logger().info("Message: %s", data.c_str()); // send to log - Mqtt::queue_publish(F_(message), data); // send to MQTT if enabled + EMSESP::logger().info("Message: %s", data.c_str()); // send to log + Mqtt::queue_publish(F_(message), data); // send to MQTT if enabled return true; } // check http commands. e.g.