auto-sync
This commit is contained in:
parent
ed4c1e5b1d
commit
2e75ad587d
|
@ -57,15 +57,18 @@ uint64_t EventQueue::getNextEventTime(uint64_t nowUs) {
|
||||||
return EMPTY_QUEUE;
|
return EMPTY_QUEUE;
|
||||||
}
|
}
|
||||||
if (current->momentUs <= nowUs) {
|
if (current->momentUs <= nowUs) {
|
||||||
//firmwareError("temperror: executeAll should have been called %d/%d", current->momentUs, nowUs);
|
/**
|
||||||
// todo: looks like we end up here after 'writeconfig' (which freezes the firmware)
|
* looks like we end up here after 'writeconfig' (which freezes the firmware) - we are late
|
||||||
// todo: figure this out
|
* for the next scheduled event
|
||||||
continue;
|
*/
|
||||||
}
|
uint64_t mock = nowUs + MS2US(10);
|
||||||
efiAssert(current->momentUs > nowUs, "executeAll should have been called", EMPTY_QUEUE);
|
if (mock < result)
|
||||||
|
result = mock;
|
||||||
|
} else {
|
||||||
if (current->momentUs < result)
|
if (current->momentUs < result)
|
||||||
result = current->momentUs;
|
result = current->momentUs;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue