only "continue previous delay" if delay is 0

This commit is contained in:
asvitkine 2009-08-01 07:02:41 +00:00
parent ccdb8ab3c0
commit 5cef748ac7

View File

@ -428,7 +428,9 @@ int16 PrimeTime(uint32 tm, int32 time)
// or (b) "continue previous delay" if an expired task was stopped via RmvTime() and // or (b) "continue previous delay" if an expired task was stopped via RmvTime() and
// then re-installed using InsXTime(). Since tmWakeUp was set, this is case (b). // then re-installed using InsXTime(). Since tmWakeUp was set, this is case (b).
// The remaining time was saved in tmCount by RmvTime(). // The remaining time was saved in tmCount by RmvTime().
timer_mac2host_time(delay, ReadMacInt16(tm + tmCount)); if (time == 0) {
timer_mac2host_time(delay, ReadMacInt16(tm + tmCount));
}
// Yes, calculate wakeup time relative to last scheduled time // Yes, calculate wakeup time relative to last scheduled time
tm_time_t wakeup; tm_time_t wakeup;