migrating to SensorType::Rpm API

This commit is contained in:
Andrey 2022-01-20 22:27:48 -05:00
parent 3183a123cd
commit 3bc59bfbb6
2 changed files with 3 additions and 3 deletions

View File

@ -311,7 +311,7 @@ static void showFuelInfo2(float rpm, float engineLoad) {
#if EFI_ENGINE_CONTROL
static void showFuelInfo() {
showFuelInfo2((float) GET_RPM(), getFuelingLoad());
showFuelInfo2(Sensor::getOrZero(SensorType::Rpm), getFuelingLoad());
}
#endif
@ -853,7 +853,7 @@ void updateTunerStudioState() {
break;
case DBG_INSTANT_RPM:
{
tsOutputChannels->debugFloatField2 = instantRpm / GET_RPM();
tsOutputChannels->debugFloatField2 = instantRpm / Sensor::getOrZero(SensorType::Rpm);
tsOutputChannels->mostRecentTimeBetweenSparkEvents = engine->mostRecentTimeBetweenSparkEvents;
tsOutputChannels->mostRecentTimeBetweenIgnitionEvents = engine->mostRecentTimeBetweenIgnitionEvents;

View File

@ -406,7 +406,7 @@ float getBaroCorrection() {
float correction = interpolate3d(
engineConfiguration->baroCorrTable,
engineConfiguration->baroCorrPressureBins, pressure,
engineConfiguration->baroCorrRpmBins, GET_RPM()
engineConfiguration->baroCorrRpmBins, Sensor::getOrZero(SensorType::Rpm)
);
if (cisnan(correction) || correction < 0.01) {