mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
auto-formatting
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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<JsonObject>();
|
||||
auto root_modules = doc_modules.to<JsonObject>();
|
||||
moduleLibrary.list(root_modules); // get list the external library modules, put in a json object
|
||||
|
||||
auto modules_new = root["modules"].to<JsonArray>();
|
||||
auto modules = root_modules["modules"].as<JsonArray>();
|
||||
uint8_t counter = 0;
|
||||
auto modules_new = root["modules"].to<JsonArray>();
|
||||
auto modules = root_modules["modules"].as<JsonArray>();
|
||||
uint8_t counter = 0;
|
||||
for (const JsonObject module : modules) {
|
||||
JsonObject mi = modules_new.add<JsonObject>();
|
||||
mi["id"] = counter++; // id is only used to render the table and must be unique
|
||||
|
||||
Reference in New Issue
Block a user