Browse Source

Merge remote-tracking branch 'origin/Over_The_Air_Update' into
Over_The_Air_Update

Conflicts:
components/wifi-manager/http_server.c
components/wifi-manager/wifi_manager.c

Sebastien 5 years ago
parent
commit
215477e798
2 changed files with 1 additions and 2 deletions
  1. 0 1
      components/wifi-manager/http_server.c
  2. 1 1
      components/wifi-manager/wifi_manager.c

+ 0 - 1
components/wifi-manager/http_server.c

@@ -355,7 +355,6 @@ void http_server_netconn_serve(struct netconn *conn) {
 							netconn_write(conn, http_ok_json_no_cache_hdr, sizeof(http_ok_json_no_cache_hdr) - 1, NETCONN_NOCOPY); //200ok
 						}
 
-
 					}
 					else{
 						netconn_write(conn, http_503_hdr, sizeof(http_503_hdr) - 1, NETCONN_NOCOPY);

+ 1 - 1
components/wifi-manager/wifi_manager.c

@@ -56,6 +56,7 @@ Contains the freeRTOS task and all necessary support
 #include "lwip/ip4_addr.h"
 #include "app_update/include/esp_ota_ops.h"
 
+
 #ifndef SQUEEZELITE_ESP32_RELEASE_URL
 #define SQUEEZELITE_ESP32_RELEASE_URL "https://github.com/sle118/squeezelite-esp32/releases"
 #endif
@@ -408,7 +409,6 @@ void wifi_manager_generate_ip_info_json(update_reason_code_t update_reason_code)
 		const char ip_info_json_format[] = ",\"ip\":\"%s\",\"netmask\":\"%s\",\"gw\":\"%s\",\"urc\":%d,\"project_name\":\"%s\",\"version\":\"%s\"";
 #if RECOVERY_APPLICATION
 		"\"ota_dsc\":\"%s\", \"ota_pct\":%d";
-#endif
 	"}\n";
 		memset(ip_info_json, 0x00, JSON_IP_INFO_SIZE);