Another attempted fix for fluctuating MAP readings
This commit is contained in:
parent
ace8c1f129
commit
98f5640a77
|
@ -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(); }
|
||||
|
|
Loading…
Reference in New Issue