change heap print time

master
Jan Umbach 2023-08-15 00:09:52 +02:00
parent 847616be46
commit 8dab6c3de4
1 changed files with 4 additions and 4 deletions

View File

@ -218,10 +218,10 @@ void printFreeHeapTask(void *parameter)
while (1) while (1)
{ {
size_t heap = esp_get_free_heap_size(); size_t heap = esp_get_free_heap_size();
ESP_LOGI(jannexTAG, "Biggest free heap Block: %i", heap); // ESP_LOGI(jannexTAG, "Biggest free heap Block: %i", heap);
ESP_LOGI(jannexTAG, "Total Free heap: %i", heap_caps_get_free_size(MALLOC_CAP_8BIT)); ESP_LOGI(jannexTAG, "Total Free heap: %i", heap_caps_get_free_size(MALLOC_CAP_8BIT));
vTaskDelay(500 / portTICK_PERIOD_MS); vTaskDelay(10000 / portTICK_PERIOD_MS);
} }
} }
@ -290,7 +290,7 @@ void checkIfOTAwasSuccessful(void *parameter)
if (state == ESP_OTA_IMG_PENDING_VERIFY) if (state == ESP_OTA_IMG_PENDING_VERIFY)
{ {
ESP_LOGI(jannexTAG, "ESP_OTA_IMG_PENDING_VERIFY"); ESP_LOGI(jannexTAG, "ESP_OTA_IMG_PENDING_VERIFY");
vTaskDelay(1000 * 30 / portTICK_PERIOD_MS); // wait 30sec minute vTaskDelay(1000 * 300 / portTICK_PERIOD_MS); // wait 30sec minute
// run diagnostic function ... // run diagnostic function ...
bool diagnostic_is_ok = true; // diagnostic(); bool diagnostic_is_ok = true; // diagnostic();
if (diagnostic_is_ok) if (diagnostic_is_ok)