We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 627c5f5 + 13453d3 commit 2ae8a44Copy full SHA for 2ae8a44
ports/esp32s2/common-hal/watchdog/WatchDogTimer.c
@@ -49,7 +49,7 @@ void common_hal_watchdog_feed(watchdog_watchdogtimer_obj_t *self) {
49
}
50
51
void common_hal_watchdog_deinit(watchdog_watchdogtimer_obj_t *self) {
52
- if (esp_task_wdt_deinit() == ESP_OK) {
+ if (esp_task_wdt_delete(NULL) == ESP_OK && esp_task_wdt_deinit() == ESP_OK) {
53
self->mode = WATCHDOGMODE_NONE;
54
55
0 commit comments