From 2768583ec193acc2a96a6429e8b1e55e3145b40b Mon Sep 17 00:00:00 2001 From: dron0gus Date: Wed, 10 Apr 2019 17:25:50 +0300 Subject: [PATCH] gpiochips integration: remove incorrect code (rebase issue) (#742) --- firmware/controllers/system/efi_gpio.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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) {