fix timer display when permanent

This commit is contained in:
Nicu Hodos 2025-02-14 10:59:18 +01:00
parent 02f25d8e1f
commit 0882cb0a19

View File

@ -85,7 +85,6 @@ namespace Display {
} }
}, &ts, false, nullptr, }, &ts, false, nullptr,
[]{ []{
tDisplayTimer.setIterations(TASK_ONCE + 1);
if (!displayTask.isPerm(tDisplayTimer)) displayTask.restorePerm(); if (!displayTask.isPerm(tDisplayTimer)) displayTask.restorePerm();
}); });
Task tTimer(MINUTES(1), TASK_FOREVER, Task tTimer(MINUTES(1), TASK_FOREVER,
@ -105,6 +104,7 @@ namespace Display {
return true; return true;
}, },
[]{ []{
tDisplayTimer.setIterations(TASK_ONCE + 1);
displayTask.activate(tDisplayTime); displayTask.activate(tDisplayTime);
}); });