Skip to content

Commit

Permalink
fix writing of end-of-PDU fields
Browse files Browse the repository at this point in the history
the {MAX,MIN}-NUMBER-OF-ITEMS subtags were missing.

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Florian Jost <[email protected]>
  • Loading branch information
andlaus committed Jan 15, 2024
1 parent fb6252a commit dcb096c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions odxtools/templates/macros/printEndOfPdu.xml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
<END-OF-PDU-FIELD ID="{{eopdu.odx_id.local_id}}">
{{ peid.printElementIdSubtags(eopdu)|indent(1) }}
<BASIC-STRUCTURE-REF ID-REF="{{eopdu.structure_ref.ref_id}}" />
{%- if eopdu.max_number_of_items is not none %}
<MAX-NUMBER-OF-ITEMS>{{eopdu.max_number_of_items}}</MAX-NUMBER-OF-ITEMS>
{%- endif %}
{%- if eopdu.min_number_of_items is not none %}
<MIN-NUMBER-OF-ITEMS>{{eopdu.min_number_of_items}}</MIN-NUMBER-OF-ITEMS>
{%- endif %}
</END-OF-PDU-FIELD>
{%- endmacro -%}

0 comments on commit dcb096c

Please sign in to comment.