Skip to content

Commit 3b47eb9

Browse files
committed
parse NmStationAddress
1 parent f7e5c0e commit 3b47eb9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/canmatrix/formats/fibex.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,10 @@ def dump(db, f, **options):
664664
for bu in db.ecus:
665665
ecu = create_sub_element_fx(ecus, "ECU")
666666
ecu.set("ID", bu.name)
667+
nm_address = bu.attribute("NmStationAddress")
668+
if nm_address:
669+
manufac_extansion = create_sub_element_fx(ecu, "MANUFACTURER-EXTENSION")
670+
create_sub_element_te(manufac_extansion, "ECU-ADDRESS",nm_address)
667671
create_short_name_desc(ecu, bu.name, bu.comment)
668672
function_refs = create_sub_element_fx(ecu, "FUNCTION-REFS")
669673
func_ref = create_sub_element_fx(function_refs, "FUNCTION-REF")

0 commit comments

Comments
 (0)