mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Fix: the last execution time must be carried over when skipping
This commit is contained in:
parent
2bd50bcbdc
commit
44c317ce1c
@ -325,7 +325,7 @@ public abstract class MspMote extends AbstractEmulatedMote implements Mote, Watc
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (((1-deviation) * executed) > skipped) {
|
if (((1-deviation) * executed) > skipped) {
|
||||||
lastExecute = t;
|
lastExecute = lastExecute + duration; // (t+duration) - (t-lastExecute);
|
||||||
nextExecute = t+duration;
|
nextExecute = t+duration;
|
||||||
skipped += duration;
|
skipped += duration;
|
||||||
scheduleNextWakeup(nextExecute);
|
scheduleNextWakeup(nextExecute);
|
||||||
|
Loading…
Reference in New Issue
Block a user