diff --git a/decoders.ino b/decoders.ino index 19336dde..98ef3888 100644 --- a/decoders.ino +++ b/decoders.ino @@ -696,22 +696,20 @@ void triggerPri_Audi135() curGap = curTime - toothLastToothTime; if ( curGap < triggerFilterTime ) { return; } //Debounce check. Pulses should never be less than triggerFilterTime, so if they are it means a false trigger. (A 36-1 wheel at 8000pm will have triggers approx. every 200uS) toothSystemCount++; + addToothLogEntry(curGap); if ( toothSystemCount != 3 ) { return; } //We only proceed for every third tooth toothSystemCount = 0; toothCurrentCount++; //Increment the tooth counter - if ( toothCurrentCount == 1 || toothCurrentCount > configPage2.triggerTeeth) + if ( toothCurrentCount == 1 || toothCurrentCount > 45) { toothCurrentCount = 1; toothOneMinusOneTime = toothOneTime; toothOneTime = curTime; startRevolutions++; //Counter currentStatus.hasSync = true; - //if ((startRevolutions & 63) == 1) { currentStatus.hasSync = false; } //Every 64 revolutions, force a resync with the cam } - addToothLogEntry(curGap); - toothLastMinusOneToothTime = toothLastToothTime; toothLastToothTime = curTime; }