mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-03-30 01:28:46 +03:00
Bug Fix: OTA now works from the Squeezelite app partition - release
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
|
||||
//#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
|
||||
#include "config.h"
|
||||
#include "nvs_utilities.h"
|
||||
|
||||
@@ -565,7 +565,7 @@ void config_delete_key(const char *key){
|
||||
ESP_LOGV(TAG, "Structure before delete \n%s", struc_str);
|
||||
free(struc_str);
|
||||
}
|
||||
cJSON * entry = cJSON_GetObjectItemCaseSensitive(nvs_json, key);
|
||||
cJSON * entry = cJSON_DetachItemFromObjectCaseSensitive(nvs_json, key);
|
||||
if(entry !=NULL){
|
||||
ESP_LOGI(TAG, "Removing config key [%s]", entry->string);
|
||||
cJSON_Delete(entry);
|
||||
@@ -574,7 +574,6 @@ void config_delete_key(const char *key){
|
||||
ESP_LOGV(TAG, "Structure after delete \n%s", struc_str);
|
||||
free(struc_str);
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
ESP_LOGW(TAG, "Unable to remove config key [%s]: not found.", key);
|
||||
|
||||
@@ -10,7 +10,7 @@ extern "C" {
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
bool config_has_uncommitted();
|
||||
bool config_has_changes();
|
||||
void config_commit_to_nvs();
|
||||
void config_start_timer();
|
||||
void config_init();
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
|
||||
//#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
|
||||
#include "platform_esp32.h"
|
||||
#include "led.h"
|
||||
#include <stdio.h>
|
||||
|
||||
Reference in New Issue
Block a user