auto-formatting

This commit is contained in:
proddy
2026-08-01 16:57:41 +02:00
parent 36b4dd55a7
commit d0e6a603bb
5 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ void WiFiScanner::listNetworks(AsyncWebServerRequest * request) {
} else if (numNetworks == -1) { } else if (numNetworks == -1) {
request->send(202); // special code to indicate scan in progress request->send(202); // special code to indicate scan in progress
} else { } else {
auto * response = new AsyncJsonResponse(false); auto * response = new AsyncJsonResponse(false);
JsonObject root = response->getRoot(); JsonObject root = response->getRoot();
root["networks"].to<JsonArray>(); root["networks"].to<JsonArray>();
response->setLength(); response->setLength();
request->send(response); request->send(response);
+1 -1
View File
@@ -34,7 +34,7 @@ class Roomctrl {
static bool is_remote(const uint8_t hc) { static bool is_remote(const uint8_t hc) {
return (hc < 4 && remotetemp_[hc] != EMS_VALUE_INT16_NOTSET); return (hc < 4 && remotetemp_[hc] != EMS_VALUE_INT16_NOTSET);
} }
static void set_timeout(uint8_t t); static void set_timeout(uint8_t t);
private: private:
static constexpr uint32_t SEND_INTERVAL = 15000; // 15 sec static constexpr uint32_t SEND_INTERVAL = 15000; // 15 sec
+2 -1
View File
@@ -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_); write_command(0x33B + dhw_, 4, b ? 0x01 : 0x00, 0x33B + dhw_);
} else { // SM100 } else { // SM100
write_command(0x7A5, 4, b ? 0xFF : 0x00, 0x7A5); write_command(0x7A5, 4, b ? 0xFF : 0x00, 0x7A5);
} return true; }
return true;
} }
bool Water::set_wwKeepWarm(const char * value, const int8_t id) { bool Water::set_wwKeepWarm(const char * value, const int8_t id) {
+2 -2
View File
@@ -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) { bool WebSchedulerService::command(const char * name, const std::string & command, const std::string & data) {
std::string cmd = Helpers::toLower(command); std::string cmd = Helpers::toLower(command);
if (cmd == "system/message") { if (cmd == "system/message") {
EMSESP::logger().info("Message: %s", data.c_str()); // send to log EMSESP::logger().info("Message: %s", data.c_str()); // send to log
Mqtt::queue_publish(F_(message), data); // send to MQTT if enabled Mqtt::queue_publish(F_(message), data); // send to MQTT if enabled
return true; return true;
} }
// check http commands. e.g. // check http commands. e.g.