use timer instead of home spun time math

This commit is contained in:
Matthew Kennedy 2024-04-25 15:11:13 -07:00
parent 378b37f29c
commit 0c30e1e148
1 changed files with 2 additions and 2 deletions

View File

@ -277,10 +277,10 @@ static void startDwellByTurningSparkPinHigh(IgnitionEvent *event, IgnitionOutput
}
void turnSparkPinHigh(IgnitionEvent *event) {
event->actualStartOfDwellNt = getTimeNowLowerNt();
efitick_t nowNt = getTimeNowNt();
event->actualDwellTimer.reset(nowNt);
#if EFI_UNIT_TEST
if (engine->onIgnitionEvent) {
engine->onIgnitionEvent(event, true);