ETB idle bugfix: do not use once turned off

This commit is contained in:
rusefi 2019-09-21 01:22:21 -04:00
parent f588224559
commit 3646ef4406
1 changed files with 2 additions and 1 deletions

View File

@ -234,7 +234,8 @@ class EtbController : public PeriodicTimerController {
int rpm = GET_RPM();
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 EFI_TUNER_STUDIO