Closed disk91 closed 4 years ago
when you call itdt_sched_runSched(sched_id); Then next period is defined like this:
__scheds[schedId].nextRun = itsdk_time_get_ms()+__scheds[schedId].period;
So I don't see why you have twice the duration. Can you take a looks to details and provide some please ?
Ok, I got it with your pull-request. See my comment on it. Paul
Hello,
I have tried your function
itdt_sched_changeSched
but I have a problem with sleep time. After using the function in the followed way:The system sleeps twice the time that I set if I disable the condition haltSched and modify only period, sleeping works that I imagine.
Thank you, Zbynek Kocur