diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c
index f1c6d38ea..86c5d67bd 100644
--- a/src/httpserver/http_fns.c
+++ b/src/httpserver/http_fns.c
@@ -36,8 +36,8 @@
#endif
#if defined(PLATFORM_BK7231T) || defined(PLATFORM_BK7231N)
-int tuya_os_adapt_wifi_all_ap_scan(AP_IF_S **ap_ary, unsigned int *num);
-int tuya_os_adapt_wifi_release_ap(AP_IF_S *ap);
+int tuya_os_adapt_wifi_all_ap_scan(AP_IF_S** ap_ary, unsigned int* num);
+int tuya_os_adapt_wifi_release_ap(AP_IF_S* ap);
#endif
static char* UNIQUE_ID_FORMAT = " - unique_id: \"%s\"\n";
@@ -548,10 +548,10 @@ int http_fn_index(http_request_t* request) {
hprintf255(request, "
Ping watchdog - %i lost, %i ok!
",
PingWatchDog_GetTotalLost(), PingWatchDog_GetTotalReceived());
- if (Main_HasWiFiConnected())
- {
- hprintf255(request, "Wifi RSSI: %s (%idBm)
", str_rssi[wifi_rssi_scale(HAL_GetWifiStrength())], HAL_GetWifiStrength());
- }
+ if (Main_HasWiFiConnected())
+ {
+ hprintf255(request, "Wifi RSSI: %s (%idBm)
", str_rssi[wifi_rssi_scale(HAL_GetWifiStrength())], HAL_GetWifiStrength());
+ }
hprintf255(request, "MQTT State: %s RES: %d(%s)
", (Main_HasMQTTConnected() == 1) ? "connected" : "disconnected",
MQTT_GetConnectResult(), get_error_name(MQTT_GetConnectResult()));
hprintf255(request, "MQTT ErrMsg: %s
", (MQTT_GetStatusMessage() != NULL) ? MQTT_GetStatusMessage() : "");
@@ -576,8 +576,8 @@ int http_fn_index(http_request_t* request) {
{
hprintf255(request, "P%02i: NA ", i);
}
- else
- {
+ else
+ {
hprintf255(request, "P%02i: %i ", i, (int)HAL_PIN_ReadDigitalInput(i));
}
if (i % 10 == 9)
@@ -589,10 +589,10 @@ int http_fn_index(http_request_t* request) {
}
#if defined(PLATFORM_BK7231T) || defined(PLATFORM_BK7231N)
- if (ota_progress()>=0)
- {
- hprintf255(request, "OTA In Progress. Status: %06lXh
", ota_progress());
- }
+ if (ota_progress() >= 0)
+ {
+ hprintf255(request, "OTA In Progress. Status: %06lXh
", ota_progress());
+ }
#endif
// for normal page loads, show the rest of the HTML
@@ -1670,7 +1670,7 @@ int http_fn_cfg(http_request_t* request) {
postFormAction(request, "cfg_mac", "Change MAC");
postFormAction(request, "cfg_ping", "Ping Watchdog (Network lost restarter)");
postFormAction(request, "cfg_webapp", "Configure Webapp");
- postFormAction(request, "ha_cfg", "Generate Home Assistant cfg");
+ postFormAction(request, "ha_cfg", "Home Assistant Configuration");
postFormAction(request, "ota", "OTA (update software by WiFi)");
postFormAction(request, "cmd_tool", "Execute custom command");
postFormAction(request, "flash_read_tool", "Flash Read Tool");