move watchdog reset into retry wrapper loop

This commit is contained in:
technyon
2025-10-06 19:09:50 +07:00
parent 0e1caf6211
commit ed02f0162f
3 changed files with 11 additions and 50 deletions

View File

@@ -21,6 +21,11 @@ const Nuki::CmdResult NukiRetryHandler::retryComm(std::function<Nuki::CmdResult(
while(retryCount < _nrOfRetries + 1 && cmdResult != Nuki::CmdResult::Success)
{
if (esp_task_wdt_status(NULL) == ESP_OK)
{
esp_task_wdt_reset();
}
cmdResult = func();
if (cmdResult != Nuki::CmdResult::Success)