From aaebf2d83379c97f7d400cbd30edc9dc21c99376 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Mon, 8 May 2017 06:10:04 +1000 Subject: [PATCH] Fix warning presented in Arduino IDE for 4g63 change --- speeduino/decoders.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino/decoders.ino b/speeduino/decoders.ino index 083d32d5..143f5a27 100644 --- a/speeduino/decoders.ino +++ b/speeduino/decoders.ino @@ -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;