Skip to content

Commit

Permalink
potentional fix for #410
Browse files Browse the repository at this point in the history
  • Loading branch information
ebroecker committed Oct 21, 2019
1 parent ac6111a commit f9cfb4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/canmatrix/formats/arxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,8 @@ def get_frame(frame_triggering, root_or_cache, multiplex_translation, ns, float_
# type: (_Element, _DocRoot, dict, str, typing.Callable) -> typing.Union[canmatrix.Frame, None]
global pdu_frame_mapping
address_mode = get_child(frame_triggering, "CAN-ADDRESSING-MODE", root_or_cache, ns)
is_fd_elem = get_child(frame_triggering, "CAN-FD-FRAME-SUPPORT", root_or_cache, ns)

arb_id = get_child(frame_triggering, "IDENTIFIER", root_or_cache, ns)
frame_elem = get_child(frame_triggering, "FRAME", root_or_cache, ns)

Expand Down Expand Up @@ -1381,6 +1383,11 @@ def get_frame(frame_triggering, root_or_cache, multiplex_translation, ns, float_
else:
new_frame.arbitration_id = canmatrix.ArbitrationId(arbitration_id, extended=False)

if is_fd_elem is not None and is_fd_elem.text == 'TRUE':
new_frame.is_fd = True
else:
new_frame.is_fd = False

timing_spec = get_child(pdu, "I-PDU-TIMING-SPECIFICATION", root_or_cache, ns)
if timing_spec is None:
timing_spec = get_child(pdu, "I-PDU-TIMING-SPECIFICATIONS", root_or_cache, ns)
Expand Down

0 comments on commit f9cfb4c

Please sign in to comment.