Improvements to D17 decoder

This commit is contained in:
Josh Stewart 2016-02-18 15:00:08 +11:00
parent 72f65605b0
commit 06458635ef
1 changed files with 6 additions and 2 deletions

View File

@ -793,9 +793,13 @@ void triggerPri_HondaD17()
addToothLogEntry(curGap);
//
if( toothCurrentCount > 12 && currentStatus.hasSync)
if( toothCurrentCount == 13 && currentStatus.hasSync)
{
toothCurrentCount = 0;
return;
}
else if( toothCurrentCount == 1 && currentStatus.hasSync)
{
toothCurrentCount = 1;
toothOneMinusOneTime = toothOneTime;
toothOneTime = curTime;
startRevolutions++; //Counter