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) {
|
||||
lastExecute = t;
|
||||
lastExecute = lastExecute + duration; // (t+duration) - (t-lastExecute);
|
||||
nextExecute = t+duration;
|
||||
skipped += duration;
|
||||
scheduleNextWakeup(nextExecute);
|
||||
|
|
Loading…
Reference in a new issue