mirror of https://github.com/FOME-Tech/fome-fw.git
use timer instead of home spun time math
This commit is contained in:
parent
378b37f29c
commit
0c30e1e148
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue