From 148b4887ce3933bd3037ca46775198d007fde023 Mon Sep 17 00:00:00 2001 From: SET Date: Wed, 12 Aug 2020 09:43:19 -0300 Subject: [PATCH] Fixed SCH "Entry" load --- kiplot/kicad/v5_sch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kiplot/kicad/v5_sch.py b/kiplot/kicad/v5_sch.py index 18abb683..c1eb36a5 100644 --- a/kiplot/kicad/v5_sch.py +++ b/kiplot/kicad/v5_sch.py @@ -807,11 +807,16 @@ class SchematicWire(object): raise SchFileError('Malformed wire', line, _sch_line_number) wire = SchematicText() if res[0] == 'Wire': + # Wire Wire Line + # Wire Bus Line + # Wire Notes Line if res[2] != 'Line' or res[1] not in SchematicWire.WIRES: raise SchFileError('Malformed wire', line, _sch_line_number) wire.type = SchematicWire.WIRES[res[1]] else: # Entry - if res[2] != 'Bus' or res[1] not in SchematicWire.ENTRIES: + # Entry Wire Line + # Entry Bus Bus + if (res[2] != 'Bus' and res[2] != 'Line') or res[1] not in SchematicWire.ENTRIES: raise SchFileError('Malformed entry', line, _sch_line_number) wire.type = SchematicWire.ENTRIES[res[1]] line = _get_line(f)