From 59caa0f2b86918760904dcef1cf11b42b98bb604 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 13 Dec 2023 23:59:01 -0500 Subject: [PATCH] a bit more rename --- firmware/controllers/system/efi_gpio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/system/efi_gpio.cpp b/firmware/controllers/system/efi_gpio.cpp index d346297024..dacb7fbfcb 100644 --- a/firmware/controllers/system/efi_gpio.cpp +++ b/firmware/controllers/system/efi_gpio.cpp @@ -226,7 +226,7 @@ void EnginePins::unregisterPins() { // todo: add pinMode unregisterOutputIfPinChanged(sdCsPin, sdCardCsPin); - unregisterOutputIfPinChanged(accelerometerCs, LIS302DLCsPin); + unregisterOutputIfPinChanged(accelerometerCs, accelerometerCsPin); RegisteredOutputPin * pin = registeredOutputHead; while (pin != nullptr) { @@ -739,7 +739,7 @@ void OutputPin::initPin(const char *msg, brain_pin_e p_brainPin, pin_output_mode const int logicalValue = (outputMode == OM_INVERTED) - ? !actualValue + ? !actualValue : actualValue; // if the pin was set to logical 1, then set an error and disable the pin so that things don't catch fire