Skip to content

Commit

Permalink
Decrease restart delay to 1 second
Browse files Browse the repository at this point in the history
This prevents a reload of the webapp (during firmware update) before the esp is online again
  • Loading branch information
tbnobody committed Sep 23, 2024
1 parent 00584a0 commit d6a5fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RestartHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
RestartHelperClass RestartHelper;

RestartHelperClass::RestartHelperClass()
: _rebootTask(2 * TASK_SECOND, TASK_FOREVER, std::bind(&RestartHelperClass::loop, this))
: _rebootTask(1 * TASK_SECOND, TASK_FOREVER, std::bind(&RestartHelperClass::loop, this))
{
}

Expand Down

0 comments on commit d6a5fef

Please sign in to comment.