Have the missing tooth decoder use the cranking specific RPM calc

This commit is contained in:
Josh Stewart 2017-05-20 21:55:50 +10:00
parent 535756f656
commit a106ea72ca
3 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ void triggerSec_missingTooth()
int getRPM_missingTooth()
{
if( currentStatus.RPM < (unsigned int)(configPage2.crankRPM * 100) )
{
if(configPage2.TrigSpeed) { crankingGetRPM(configPage2.triggerTeeth/2); } //Account for cam speed
else { return crankingGetRPM(configPage2.triggerTeeth); }
}
if(configPage2.TrigSpeed) { return (stdGetRPM() * 2); } //Account for cam speed
return stdGetRPM();
}