From c628b4b5ac9c0e95a1785223fc5a4c69a143df9c Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 16 Nov 2024 14:55:39 +0100 Subject: [PATCH] autoformatting --- src/system.cpp | 12 ++++++------ src/web/WebStatusService.cpp | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/system.cpp b/src/system.cpp index d8ca8986d..27df27e30 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -713,9 +713,9 @@ void System::heartbeat_json(JsonObject output) { #ifndef EMSESP_STANDALONE if (!ethernet_connected_) { - int8_t rssi = WiFi.RSSI(); - output["rssi"] = rssi; - output["wifistrength"] = wifi_quality(rssi); + int8_t rssi = WiFi.RSSI(); + output["rssi"] = rssi; + output["wifistrength"] = wifi_quality(rssi); output["wifireconnects"] = EMSESP::esp8266React.getWifiReconnects(); } #endif @@ -1497,9 +1497,9 @@ bool System::command_info(const char * value, const int8_t id, JsonObject output // node["IPv6 address"] = uuid::printable_to_string(ETH.localIPv6()); // } } else if (WiFi.status() == WL_CONNECTED) { - node["network"] = "WiFi"; - node["hostname"] = WiFi.getHostname(); - node["RSSI"] = WiFi.RSSI(); + node["network"] = "WiFi"; + node["hostname"] = WiFi.getHostname(); + node["RSSI"] = WiFi.RSSI(); node["WIFIReconnects"] = EMSESP::esp8266React.getWifiReconnects(); // node["MAC"] = WiFi.macAddress(); // node["IPv4 address"] = uuid::printable_to_string(WiFi.localIP()) + "/" + uuid::printable_to_string(WiFi.subnetMask()); diff --git a/src/web/WebStatusService.cpp b/src/web/WebStatusService.cpp index 6b6b84ac2..3710ab374 100644 --- a/src/web/WebStatusService.cpp +++ b/src/web/WebStatusService.cpp @@ -308,7 +308,8 @@ bool WebStatusService::getCustomSupport(JsonObject root) { #if defined(EMSESP_STANDALONE) // dummy test data for "test api3" - deserializeJson(doc, "{\"type\":\"customSupport\",\"Support\":{\"html\":[\"html code\",\"here\"], \"img_url\": \"https://docs.emsesp.org/_media/images/designer.png\"}"); + deserializeJson( + doc, "{\"type\":\"customSupport\",\"Support\":{\"html\":[\"html code\",\"here\"], \"img_url\": \"https://docs.emsesp.org/_media/images/designer.png\"}"); #else // check if we have custom support file uploaded File file = LittleFS.open(EMSESP_CUSTOMSUPPORT_FILE, "r");