Fix: the last execution time must be carried over when skipping

This commit is contained in:
Andreas Löscher 2015-03-09 15:16:03 +01:00
parent 2bd50bcbdc
commit 44c317ce1c

View File

@ -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);