esp_system: Fix TIMG0 still enabled after Timer is freed

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2023-02-23 08:59:59 -03:00 committed by morris
parent 3cbac3dd1d
commit 2a2bd0f8ff

View File

@ -106,7 +106,7 @@ void esp_task_wdt_impl_timer_free(twdt_ctx_t obj)
ESP_ERROR_CHECK(esp_intr_disable(ctx->intr_handle)); ESP_ERROR_CHECK(esp_intr_disable(ctx->intr_handle));
/* Disable the Timer Group module */ /* Disable the Timer Group module */
periph_module_enable(TWDT_PERIPH_MODULE); periph_module_disable(TWDT_PERIPH_MODULE);
/* Deregister interrupt */ /* Deregister interrupt */
ESP_ERROR_CHECK(esp_intr_free(ctx->intr_handle)); ESP_ERROR_CHECK(esp_intr_free(ctx->intr_handle));