This commit is contained in:
rusefi 2019-04-10 18:24:03 -04:00
commit d3a9860da9
1 changed files with 1 additions and 9 deletions

View File

@ -70,14 +70,6 @@ EnginePins::EnginePins() {
} \
}
#define gpiochip_setPinValue(outputPin, electricalValue, logicValue) \
{ \
if ((outputPin)->currentLogicValue != (logicValue)) { \
gpiochips_writePad((outputPin)->brainPin, (electricalValue)); \
(outputPin)->currentLogicValue = (logicValue); \
} \
}
#else /* EFI_PROD_CODE */
#define setPinValue(outputPin, electricalValue, logicValue) \
@ -319,7 +311,7 @@ void OutputPin::setValue(int logicValue) {
}
} else {
/* external pin */
gpiochip_setPinValue(this, this->brainPin, logicValue);
gpiochips_writePad(this->brainPin, logicValue);
}
#else
if (port != GPIO_NULL) {