use timer instead of home spun time math

This commit is contained in:
Matthew Kennedy 2024-04-25 18:11:13 -04:00 committed by rusefi
parent 6d010189e3
commit bed17c0094
1 changed files with 2 additions and 2 deletions

View File

@ -318,10 +318,10 @@ static bool startDwellByTurningSparkPinHigh(IgnitionEvent *event, IgnitionOutput
}
void turnSparkPinHighStartCharging(IgnitionEvent *event) {
event->actualStartOfDwellNt = getTimeNowLowerNt();
efitick_t nowNt = getTimeNowNt();
event->actualDwellTimer.reset(nowNt);
bool skippedDwellDueToTriggerNoised = false;
for (int i = 0; i< MAX_OUTPUTS_FOR_IGNITION;i++) {
IgnitionOutputPin *output = event->outputs[i];