mirror of https://github.com/rusefi/rusefi-1.git
avoiding AFR warning
This commit is contained in:
parent
32f7c4d2dd
commit
110f76d85b
|
@ -701,7 +701,9 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
||||||
tsOutputChannels->currentTargetAfr = afrMap.getValue(rpm, mapValue);
|
tsOutputChannels->currentTargetAfr = afrMap.getValue(rpm, mapValue);
|
||||||
tsOutputChannels->manifoldAirPressure = mapValue;
|
tsOutputChannels->manifoldAirPressure = mapValue;
|
||||||
}
|
}
|
||||||
tsOutputChannels->airFuelRatio = getAfr(PASS_ENGINE_PARAMETER_SIGNATURE);
|
if (hasAfrSensor(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||||
|
tsOutputChannels->airFuelRatio = getAfr(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
|
}
|
||||||
if (hasVBatt(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
if (hasVBatt(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||||
tsOutputChannels->vBatt = getVBatt(PASS_ENGINE_PARAMETER_SIGNATURE);
|
tsOutputChannels->vBatt = getVBatt(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,7 +229,9 @@ void EngineState::periodicFastCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
int rpm = GET_RPM();
|
int rpm = GET_RPM();
|
||||||
sparkDwell = getSparkDwell(rpm PASS_ENGINE_PARAMETER_SUFFIX);
|
sparkDwell = getSparkDwell(rpm PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
dwellAngle = sparkDwell / getOneDegreeTimeMs(rpm);
|
dwellAngle = sparkDwell / getOneDegreeTimeMs(rpm);
|
||||||
engine->sensors.currentAfr = getAfr(PASS_ENGINE_PARAMETER_SIGNATURE);
|
if (hasAfrSensor(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||||
|
engine->sensors.currentAfr = getAfr(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
|
}
|
||||||
|
|
||||||
// todo: move this into slow callback, no reason for IAT corr to be here
|
// todo: move this into slow callback, no reason for IAT corr to be here
|
||||||
iatFuelCorrection = getIatFuelCorrection(engine->sensors.iat PASS_ENGINE_PARAMETER_SUFFIX);
|
iatFuelCorrection = getIatFuelCorrection(engine->sensors.iat PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
@ -433,7 +435,6 @@ bool Engine::isInShutdownMode() {
|
||||||
}
|
}
|
||||||
|
|
||||||
injection_mode_e Engine::getCurrentInjectionMode(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
injection_mode_e Engine::getCurrentInjectionMode(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
int rpm = rpmCalculator.rpmValue;
|
|
||||||
return rpmCalculator.isCranking(PASS_ENGINE_PARAMETER_SIGNATURE) ? CONFIG(crankingInjectionMode) : CONFIG(injectionMode);
|
return rpmCalculator.isCranking(PASS_ENGINE_PARAMETER_SIGNATURE) ? CONFIG(crankingInjectionMode) : CONFIG(injectionMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -263,5 +263,5 @@ int getRusEfiVersion(void) {
|
||||||
if (initBootloader() != 0)
|
if (initBootloader() != 0)
|
||||||
return 123;
|
return 123;
|
||||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||||
return 20180107;
|
return 20180116;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by Version2Header
|
// This file was generated by Version2Header
|
||||||
// Sun Jan 07 12:10:11 EST 2018
|
// Tue Jan 16 12:58:17 EST 2018
|
||||||
#ifndef VCS_VERSION
|
#ifndef VCS_VERSION
|
||||||
#define VCS_VERSION "14952"
|
#define VCS_VERSION "14975"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue