diff --git a/src/platform/esp32/main-esp32.cpp b/src/platform/esp32/main-esp32.cpp index 785eae4f3..1a0357e32 100644 --- a/src/platform/esp32/main-esp32.cpp +++ b/src/platform/esp32/main-esp32.cpp @@ -193,10 +193,8 @@ void esp32Setup() /// loop code specific to ESP32 targets void esp32Loop() { - +if (esp_task_wdt_reset() != ESP_OK) - { - +LOG_ERROR("Failed to reset task watchdog"); - + + if (esp_task_wdt_reset() != ESP_OK) { + LOG_ERROR("Failed to reset task watchdog"); } // for debug printing