From d371c9bc821b06024cf4d059aff2f5fff134ad8c Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 11 Jan 2025 21:06:47 +0100 Subject: [PATCH] auto-formatting --- src/devices/thermostat.h | 4 ++-- src/web/WebModulesService.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/devices/thermostat.h b/src/devices/thermostat.h index a0bc6dff0..38142b6bd 100644 --- a/src/devices/thermostat.h +++ b/src/devices/thermostat.h @@ -109,8 +109,8 @@ class Thermostat : public EMSdevice { uint8_t instantstart; // 1-10K uint8_t boost; uint8_t boosttime; // hours - int8_t currSolarInfl; - int8_t solarInfl; + int8_t currSolarInfl; + int8_t solarInfl; uint8_t hc_num() const { return hc_num_; diff --git a/src/web/WebModulesService.cpp b/src/web/WebModulesService.cpp index a85b23d13..cb3f4d84a 100644 --- a/src/web/WebModulesService.cpp +++ b/src/web/WebModulesService.cpp @@ -51,12 +51,12 @@ void WebModulesService::loop() { // and also calls when the Modules web page is refreshed/loaded void WebModules::read(WebModules & webModules, JsonObject root) { JsonDocument doc_modules; - auto root_modules = doc_modules.to(); + auto root_modules = doc_modules.to(); moduleLibrary.list(root_modules); // get list the external library modules, put in a json object - auto modules_new = root["modules"].to(); - auto modules = root_modules["modules"].as(); - uint8_t counter = 0; + auto modules_new = root["modules"].to(); + auto modules = root_modules["modules"].as(); + uint8_t counter = 0; for (const JsonObject module : modules) { JsonObject mi = modules_new.add(); mi["id"] = counter++; // id is only used to render the table and must be unique