Fix warning presented in Arduino IDE for 4g63 change

This commit is contained in:
Josh Stewart 2017-05-08 06:10:04 +10:00
parent b0d0c40bec
commit aaebf2d833
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ int getRPM_4G63()
//if(currentStatus.startRevolutions < 2) { return 0; } //Need at least 2 full revolutions to prevent crazy initial rpm value
int tempToothAngle;
unsigned long toothTime;
if(toothLastToothTime == 0 || toothLastMinusOneToothTime == 0) { return; }
if(toothLastToothTime == 0 || toothLastMinusOneToothTime == 0) { return 0; }
noInterrupts();
tempToothAngle = triggerToothAngle;