From 162e1837d6d071e3788978dabcf4430585b93fcc Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Wed, 21 Aug 2019 15:20:29 +1000 Subject: [PATCH] Average cycle MAP reading for, similar to b5b6ea64a2eaf60bb3e1c2d3154e79601f48d165 --- speeduino/sensors.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino/sensors.ino b/speeduino/sensors.ino index 50118b29..b8cdc360 100644 --- a/speeduino/sensors.ino +++ b/speeduino/sensors.ino @@ -162,7 +162,7 @@ static inline void readMAP() if ( (currentStatus.RPM > 0) && (currentStatus.hasSync == true) ) //If the engine isn't running, fall back to instantaneous reads { - if( (MAPcurRev == currentStatus.startRevolutions) || (MAPcurRev == (currentStatus.startRevolutions+1)) ) //2 revolutions are looked at for 4 stroke. 2 stroke not currently catered for. + if( (MAPcurRev == currentStatus.startRevolutions) || ( (MAPcurRev+1) == currentStatus.startRevolutions) ) //2 revolutions are looked at for 4 stroke. 2 stroke not currently catered for. { #if defined(ANALOG_ISR_MAP) tempReading = AnChannel[pinMAP-A0];