File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2967,7 +2967,8 @@ void triggerPri_Nissan360(void)
29672967{
29682968 curTime = micros ();
29692969 curGap = curTime - toothLastToothTime;
2970- // if ( curGap < triggerFilterTime ) { return; }
2970+ if ( curGap < triggerFilterTime ) { return ; }
2971+
29712972 toothCurrentCount++; // Increment the tooth counter
29722973 BIT_SET (decoderState, BIT_DECODER_VALID_TRIGGER); // Flag this pulse as being a valid trigger (ie that it passed filters)
29732974
@@ -2984,7 +2985,7 @@ void triggerPri_Nissan360(void)
29842985 currentStatus.startRevolutions ++; // Counter
29852986 }
29862987 // Recalc the new filter value
2987- // setFilter(curGap);
2988+ setFilter (curGap);
29882989
29892990 // EXPERIMENTAL!
29902991 if (configPage2.perToothIgn == true )
@@ -3088,9 +3089,9 @@ void triggerSec_Nissan360(void)
30883089 }
30893090 else if (configPage2.nCylinders == 6 )
30903091 {
3091- if (secondaryDuration == 4 )
3092+ if ( ( secondaryDuration >= 3 ) && (secondaryDuration <= 5 ) ) // Duration of window = 4 primary teeth
30923093 {
3093- // toothCurrentCount = 304;
3094+ toothCurrentCount = 124 ; // End of smallest window is after 60+60+4 primary teeth
30943095 }
30953096 } // Cylinder count
30963097 } // use resync
You can’t perform that action at this time.
0 commit comments