Another attempted fix for fluctuating MAP readings
This commit is contained in:
parent
ace8c1f129
commit
98f5640a77
|
@ -117,12 +117,13 @@ void readMAP()
|
||||||
currentStatus.MAP = fastMap10Bit(currentStatus.mapADC, configPage1.mapMin, configPage1.mapMax); //Get the current MAP value
|
currentStatus.MAP = fastMap10Bit(currentStatus.mapADC, configPage1.mapMin, configPage1.mapMax); //Get the current MAP value
|
||||||
//currentStatus.MAP = fastMap1023toX(currentStatus.mapADC, configPage1.mapMax);
|
//currentStatus.MAP = fastMap1023toX(currentStatus.mapADC, configPage1.mapMax);
|
||||||
if(currentStatus.MAP < 0) { currentStatus.MAP = 0; } //Sanity check
|
if(currentStatus.MAP < 0) { currentStatus.MAP = 0; } //Sanity check
|
||||||
|
}
|
||||||
|
else { instanteneousMAPReading(); }
|
||||||
|
|
||||||
MAPcurRev = currentStatus.startRevolutions; //Reset the current rev count
|
MAPcurRev = currentStatus.startRevolutions; //Reset the current rev count
|
||||||
MAPrunningValue = 0;
|
MAPrunningValue = 0;
|
||||||
MAPcount = 0;
|
MAPcount = 0;
|
||||||
}
|
}
|
||||||
else { instanteneousMAPReading(); }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else { instanteneousMAPReading(); }
|
else { instanteneousMAPReading(); }
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue