ETB idle bugfix: do not use once turned off
This commit is contained in:
parent
f588224559
commit
3646ef4406
|
@ -234,7 +234,8 @@ class EtbController : public PeriodicTimerController {
|
||||||
|
|
||||||
int rpm = GET_RPM();
|
int rpm = GET_RPM();
|
||||||
percent_t targetFromTable = pedal2tpsMap.getValue(rpm / RPM_1_BYTE_PACKING_MULT, pedalPosition);
|
percent_t targetFromTable = pedal2tpsMap.getValue(rpm / RPM_1_BYTE_PACKING_MULT, pedalPosition);
|
||||||
percent_t targetPosition = targetFromTable + engine->engineState.etbIdleAddition;
|
percent_t etbIdleAddition = CONFIGB(useETBforIdleControl) ? engine->engineState.etbIdleAddition : 0;
|
||||||
|
percent_t targetPosition = targetFromTable + etbIdleAddition;
|
||||||
|
|
||||||
if (engineConfiguration->debugMode == DBG_ETB_LOGIC) {
|
if (engineConfiguration->debugMode == DBG_ETB_LOGIC) {
|
||||||
#if EFI_TUNER_STUDIO
|
#if EFI_TUNER_STUDIO
|
||||||
|
|
Loading…
Reference in New Issue