From b215f5ddec2db10b6fb2e9f27e415a4181b96aa3 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Tue, 19 Nov 2019 23:51:09 -0500 Subject: [PATCH] remove some verbose logs - release --- components/squeezelite-ota/component.mk | 4 ++-- components/squeezelite-ota/squeezelite-ota.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/squeezelite-ota/component.mk b/components/squeezelite-ota/component.mk index a7da25b2..61351b55 100644 --- a/components/squeezelite-ota/component.mk +++ b/components/squeezelite-ota/component.mk @@ -8,6 +8,6 @@ COMPONENT_ADD_INCLUDEDIRS := . COMPONENT_ADD_INCLUDEDIRS += include COMPONENT_EXTRA_INCLUDES += $(PROJECT_PATH)/main/ COMPONENT_EXTRA_INCLUDES += $(PROJECT_PATH)/components/tools -#CFLAGS += -D LOG_LOCAL_LEVEL=ESP_LOG_INFO -DCONFIG_OTA_ALLOW_HTTP=1 -CFLAGS += -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -DCONFIG_OTA_ALLOW_HTTP=1 +CFLAGS += -D LOG_LOCAL_LEVEL=ESP_LOG_INFO -DCONFIG_OTA_ALLOW_HTTP=1 +#CFLAGS += -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -DCONFIG_OTA_ALLOW_HTTP=1 COMPONENT_EMBED_TXTFILES := ${PROJECT_PATH}/server_certs/github.pem diff --git a/components/squeezelite-ota/squeezelite-ota.c b/components/squeezelite-ota/squeezelite-ota.c index 169dcc73..0c7b8dd0 100644 --- a/components/squeezelite-ota/squeezelite-ota.c +++ b/components/squeezelite-ota/squeezelite-ota.c @@ -7,7 +7,7 @@ CONDITIONS OF ANY KIND, either express or implied. */ #ifndef LOG_LOCAL_LEVEL -#define LOG_LOCAL_LEVEL ESP_LOG_DEBUG +#define LOG_LOCAL_LEVEL ESP_LOG_INFO #endif #include "freertos/FreeRTOS.h" #include "freertos/task.h" @@ -478,8 +478,7 @@ void RECOVERY_IRAM_FUNCTION ota_task(void *pvParameter) FREE_RESET(ota_write_data); task_fatal_error(); } else if (data_read > 0) { - _printMemStats(); - if (image_header_was_checked == false) { + if (image_header_was_checked == false) { esp_app_desc_t new_app_info; if (data_read > sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t) + sizeof(esp_app_desc_t)) { // check current version with downloading @@ -536,7 +535,6 @@ void RECOVERY_IRAM_FUNCTION ota_task(void *pvParameter) task_fatal_error(); } } - _printMemStats(); err = esp_ota_write( update_handle, (const void *)ota_write_data, data_read); if (err != ESP_OK) { triggerStatusJsonRefresh(true,"Error: OTA Partition write failure. (%s)",esp_err_to_name(err));