diff --git a/firmware/controllers/system/efi_gpio.cpp b/firmware/controllers/system/efi_gpio.cpp index b630845713..a4637d8c98 100644 --- a/firmware/controllers/system/efi_gpio.cpp +++ b/firmware/controllers/system/efi_gpio.cpp @@ -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) {