From 2708114905d8fad2d79333478237fb88eb01bfd0 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 29 Oct 2023 13:26:21 -0400 Subject: [PATCH] HW CI instability: handleShaftSignal unexpected loop fix #5661 shoot from the hip? --- firmware/controllers/trigger/trigger_central.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/trigger/trigger_central.cpp b/firmware/controllers/trigger/trigger_central.cpp index 315953eb3c..42163c912b 100644 --- a/firmware/controllers/trigger/trigger_central.cpp +++ b/firmware/controllers/trigger/trigger_central.cpp @@ -828,7 +828,7 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta auto nextToothIndex = triggerIndexForListeners; angle_t nextPhase = 0; - int loopAllowance = 2 * engineCycleEventCount; + int loopAllowance = 2 * engineCycleEventCount + 1000; do { // I don't love this. nextToothIndex = (nextToothIndex + 1) % engineCycleEventCount;