Skip to content

Commit 0854b97

Browse files
committed
possible fix for #382 (support secured pdus)
1 parent b240cab commit 0854b97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/canmatrix/formats/arxml.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,9 @@ def get_frame(frame_triggering, root_or_cache, multiplex_translation, ns, float_
11921192
pdu = get_child(pdu_mapping, "PDU", root_or_cache, ns) # SIGNAL-I-PDU
11931193

11941194
if pdu is not None and 'SECURED-I-PDU' in pdu.tag:
1195-
logger.info("found secured pdu - no signal extraction possible: %s", get_element_name(pdu, ns))
1195+
payload = get_child(pdu, "PAYLOAD", root_or_cache, ns)
1196+
pdu = get_child(payload, "I-PDU", root_or_cache, ns)
1197+
# logger.info("found secured pdu - no signal extraction possible: %s", get_element_name(pdu, ns))
11961198

11971199
pdu_frame_mapping[pdu] = get_element_name(frame_elem, ns)
11981200

0 commit comments

Comments
 (0)