auto-sync

This commit is contained in:
rusEfi 2016-09-13 23:01:50 -04:00
parent 0782018074
commit b4e6b56972
1 changed files with 1 additions and 1 deletions

View File

@ -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
*/