Another attempted fix for fluctuating MAP readings

This commit is contained in:
Josh Stewart 2017-10-11 18:54:42 +11:00
parent ace8c1f129
commit 98f5640a77
1 changed files with 4 additions and 3 deletions

View File

@ -117,11 +117,12 @@ void readMAP()
currentStatus.MAP = fastMap10Bit(currentStatus.mapADC, configPage1.mapMin, configPage1.mapMax); //Get the current MAP value
//currentStatus.MAP = fastMap1023toX(currentStatus.mapADC, configPage1.mapMax);
if(currentStatus.MAP < 0) { currentStatus.MAP = 0; } //Sanity check
MAPcurRev = currentStatus.startRevolutions; //Reset the current rev count
MAPrunningValue = 0;
MAPcount = 0;
}
else { instanteneousMAPReading(); }
MAPcurRev = currentStatus.startRevolutions; //Reset the current rev count
MAPrunningValue = 0;
MAPcount = 0;
}
}
else { instanteneousMAPReading(); }