Fix hardcoded count target in BasicDistributor decoder

This commit is contained in:
Josh Stewart 2015-05-24 23:15:45 +10:00
parent 45a24cb162
commit f2512750ec
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ void triggerPri_BasicDistributor()
curTime = micros();
toothCurrentCount++; //Increment the tooth counter
if(toothCurrentCount > 8) //Check if we're back to the beginning of a cycle
if(toothCurrentCount > (configPage1.nCylinders >> 1) ) //Check if we're back to the beginning of a revolution
{
toothCurrentCount = 1; //Reset the counter
toothOneMinusOneTime = toothOneTime;