From b4e6b5697290c2c4d20b09ca938348dbe6e6a77e Mon Sep 17 00:00:00 2001 From: rusEfi Date: Tue, 13 Sep 2016 23:01:50 -0400 Subject: [PATCH] auto-sync --- firmware/hw_layer/gpio_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/hw_layer/gpio_helper.cpp b/firmware/hw_layer/gpio_helper.cpp index 295c30b2bb..935c46eb7c 100644 --- a/firmware/hw_layer/gpio_helper.cpp +++ b/firmware/hw_layer/gpio_helper.cpp @@ -31,7 +31,7 @@ * @brief Initialize the hardware output pin while also assigning it a logical name */ void initOutputPinExt(const char *msg, OutputPin *outputPin, ioportid_t port, uint32_t pinNumber, iomode_t mode) { - if (outputPin->port != NULL) { + if (outputPin->port != NULL && (outputPin->port != port || outputPin->pin != pinNumber)) { /** * here we check if another physical pin is already assigned to this logical output */