Trigger: warning code on normal engine start up #669
This commit is contained in:
parent
08747d036e
commit
cbfc4cdd8d
|
@ -229,8 +229,10 @@ void EngineTestHelper::moveTimeForwardAndInvokeEventsUs(int deltaTimeUs) {
|
|||
if (printTriggerDebug || printFuelDebug) {
|
||||
printf("moveTimeForwardAndInvokeEventsUs %.1fms\r\n", deltaTimeUs / 1000.0);
|
||||
}
|
||||
int targetTime = timeNowUs + deltaTimeUs;
|
||||
setTimeAndInvokeEventsUs(timeNowUs + deltaTimeUs);
|
||||
}
|
||||
|
||||
void EngineTestHelper::setTimeAndInvokeEventsUs(int targetTime) {
|
||||
while (true) {
|
||||
scheduling_s* nextScheduledEvent = engine.executor.getHead();
|
||||
if (nextScheduledEvent == nullptr) {
|
||||
|
|
|
@ -54,6 +54,7 @@ public:
|
|||
void smartFireRise(float delayMs);
|
||||
void smartFireFall(float delayMs);
|
||||
void moveTimeForwardAndInvokeEventsUs(int deltaTimeUs);
|
||||
void setTimeAndInvokeEventsUs(int timeNowUs);
|
||||
void moveTimeForwardAndInvokeEventsSec(int deltaTimeSeconds);
|
||||
void smartFireTriggerEvents2(int count, float delayMs);
|
||||
|
||||
|
|
Loading…
Reference in New Issue