mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 02:02:23 +00:00
cleanup period stuff for new scheduler
This commit is contained in:
@@ -12,8 +12,12 @@ void PeriodicTask::loop()
|
||||
if (period && (now - lastMsec) >= period)
|
||||
{
|
||||
lastMsec = now;
|
||||
period = doTask();
|
||||
doTask();
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t Periodic::doTask() { return callback(); }
|
||||
void Periodic::doTask()
|
||||
{
|
||||
uint32_t p = callback();
|
||||
setPeriod(p);
|
||||
}
|
||||
Reference in New Issue
Block a user