From 6e4598700591adf67bc3da95a61cf5ad2eafa461 Mon Sep 17 00:00:00 2001 From: Fabien Corona <f.corona@laposte.net> Date: Thu, 1 Dec 2022 20:33:51 +0000 Subject: [PATCH] fix build warning --- eeschema/sim/kibis/kibis.cpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/eeschema/sim/kibis/kibis.cpp b/eeschema/sim/kibis/kibis.cpp index 9aefab4f2f..af05c74da4 100644 --- a/eeschema/sim/kibis/kibis.cpp +++ b/eeschema/sim/kibis/kibis.cpp @@ -766,25 +766,11 @@ std::string KIBIS_PIN::KuKdDriver( KIBIS_MODEL& aMode simul += std::to_string( aIndex ); simul += " POWER GND PIN \n"; // 1: POWER, 2:GND, 3:PIN - if( ( aPair.first->m_R_dut == 0 ) && ( aPair.first->m_L_dut == 0 ) - && ( aPair.first->m_C_dut == 0 ) - || true ) + simul += "Vdummy 2 PIN 0\n"; + + if( ( aPair.first->m_R_dut != 0 ) || ( aPair.first->m_L_dut != 0 ) + || ( aPair.first->m_C_dut != 0 ) ) { - simul += "Vdummy 2 PIN 0\n"; - } - else - { - /* - simul += "RPIN 1 PIN "; - simul << aPair.first->m_R_dut; - simul += "\n"; - simul += "LPIN 2 1 "; - simul << aPair.first->m_L_dut; - simul += "\n"; - simul += "CPIN PIN GND "; - simul << aPair.first->m_C_dut; - simul += "\n"; - */ Report( _( "Kibis does not support DUT values yet. " "https://ibis.org/summits/nov16a/chen.pdf" ), RPT_SEVERITY_WARNING );