Oscilations in DWELL length after 40+ hours of uptime #6451

THIS COULD BE AT LEAST PART OF THE FIX?!
This commit is contained in:
rusefillc 2024-05-11 15:15:34 -04:00
parent f445c87840
commit 229958a80a
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ static void scheduleSparkEvent(bool limitedSpark, IgnitionEvent *event,
if (!limitedSpark && ENABLE_OVERDWELL_PROTECTION) {
// auto fire spark at 1.5x nominal dwell
efitick_t fireTime = chargeTime + MSF2NT(1.5f * dwellMs);
efitick_t fireTime = sumTickAndFloat(chargeTime, MSF2NT(1.5f * dwellMs));
#if SPARK_EXTREME_LOGGING
efiPrintf("scheduling overdwell sparkDown revolution=%d [%s] for id=%d for %d ticks", getRevolutionCounter(), event->getOutputForLoggins()->getName(), event->sparkCounter, fireTime);