mirror of https://github.com/rusefi/rusefi.git
use timer instead of home spun time math
This commit is contained in:
parent
6d010189e3
commit
bed17c0094
|
@ -318,10 +318,10 @@ static bool startDwellByTurningSparkPinHigh(IgnitionEvent *event, IgnitionOutput
|
||||||
}
|
}
|
||||||
|
|
||||||
void turnSparkPinHighStartCharging(IgnitionEvent *event) {
|
void turnSparkPinHighStartCharging(IgnitionEvent *event) {
|
||||||
event->actualStartOfDwellNt = getTimeNowLowerNt();
|
|
||||||
|
|
||||||
efitick_t nowNt = getTimeNowNt();
|
efitick_t nowNt = getTimeNowNt();
|
||||||
|
|
||||||
|
event->actualDwellTimer.reset(nowNt);
|
||||||
|
|
||||||
bool skippedDwellDueToTriggerNoised = false;
|
bool skippedDwellDueToTriggerNoised = false;
|
||||||
for (int i = 0; i< MAX_OUTPUTS_FOR_IGNITION;i++) {
|
for (int i = 0; i< MAX_OUTPUTS_FOR_IGNITION;i++) {
|
||||||
IgnitionOutputPin *output = event->outputs[i];
|
IgnitionOutputPin *output = event->outputs[i];
|
||||||
|
|
Loading…
Reference in New Issue