make reality match the test

This commit is contained in:
Matthew Kennedy 2020-07-26 03:15:17 -07:00
parent 2b212fbaab
commit d1fde4fe93
1 changed files with 2 additions and 2 deletions

View File

@ -747,8 +747,8 @@ void doInitElectronicThrottle(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
addConsoleActionI("etb_freq", setEtbFrequency);
#endif /* EFI_PROD_CODE */
// If you don't have a pedal, we have no business here.
if (!Sensor::hasSensor(SensorType::AcceleratorPedalPrimary)) {
// If you don't have a pedal (or VW idle valve mode), we have no business here.
if (!CONFIG(volkswagenEtbIdle) && !Sensor::hasSensor(SensorType::AcceleratorPedalPrimary)) {
return;
}