subckt export: add missing tristate pintype

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13644
This commit is contained in:
Graham Keeth 2023-01-23 10:36:59 -08:00 committed by Seth Hillbrand
parent 00f93db2ff
commit e4a8b9e76d
1 changed files with 5 additions and 4 deletions

View File

@ -40,10 +40,11 @@ void NETLIST_EXPORTER_SPICE_MODEL::WriteHead( OUTPUTFORMATTER& aFormatter,
switch( port.dir ) switch( port.dir )
{ {
case L_INPUT: portDir = "input"; break; case L_INPUT: portDir = "input"; break;
case L_OUTPUT: portDir = "output"; break; case L_OUTPUT: portDir = "output"; break;
case L_BIDI: portDir = "inout"; break; case L_BIDI: portDir = "inout"; break;
case L_UNSPECIFIED: portDir = "passive"; break; case L_TRISTATE: portDir = "tristate"; break;
case L_UNSPECIFIED: portDir = "passive"; break;
default: default:
wxFAIL_MSG( "Invalid port direction" ); wxFAIL_MSG( "Invalid port direction" );