mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 12:07:09 +03:00
OTA Work in progress
This commit is contained in:
committed by
Sebastien Leclerc
parent
3bd886b8df
commit
8aedca48a7
@@ -45,10 +45,6 @@ static const char array_separator[]=",";
|
||||
/* @brief task handle for the http server */
|
||||
static TaskHandle_t task_http_server = NULL;
|
||||
|
||||
#ifndef CONFIG_IS_RECOVERY_MODE
|
||||
#define CONFIG_IS_RECOVERY_MODE 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief embedded binary data.
|
||||
* @see file "component.mk"
|
||||
@@ -225,7 +221,7 @@ 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);
|
||||
|
||||
autoexec_flag = wifi_manager_get_flag();
|
||||
snprintf(buff,buflen-1, json_start, CONFIG_IS_RECOVERY_MODE, autoexec_flag);
|
||||
snprintf(buff,buflen-1, json_start, RECOVERY_APPLICATION, autoexec_flag);
|
||||
netconn_write(conn, buff, strlen(buff), NETCONN_NOCOPY);
|
||||
do {
|
||||
snprintf(autoexec_name,sizeof(autoexec_name)-1,"autoexec%u",i);
|
||||
|
||||
Reference in New Issue
Block a user