From 702623ef8762636dcef79369bada4820d54ffa91 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 7 Apr 2022 09:29:02 -0700 Subject: [PATCH] Don't flag pin missing driver when there is an NC The NC flag indicates user intention to override the lack of connection to input pins (cherry picked from commit e02229a2342f4f0d30fee915b139dc9d256923bd) --- eeschema/erc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eeschema/erc.cpp b/eeschema/erc.cpp index f4f02a9ec0..2783462a16 100644 --- a/eeschema/erc.cpp +++ b/eeschema/erc.cpp @@ -453,9 +453,13 @@ int ERC_TESTER::TestPinToPin() { std::vector pins; std::unordered_map pinToScreenMap; + bool has_noconnect = false; for( CONNECTION_SUBGRAPH* subgraph: net.second ) { + if( subgraph->m_no_connect ) + has_noconnect = true; + for( EDA_ITEM* item : subgraph->m_items ) { if( item->Type() == SCH_PIN_T ) @@ -552,7 +556,7 @@ int ERC_TESTER::TestPinToPin() } } - if( needsDriver && !hasDriver ) + if( needsDriver && !hasDriver && !has_noconnect ) { int err_code = ispowerNet ? ERCE_POWERPIN_NOT_DRIVEN : ERCE_PIN_NOT_DRIVEN;