From dcb096c6f9bb72e46e2157cefe87741ddc86bed1 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 12 Jan 2024 15:32:12 +0100 Subject: [PATCH] fix writing of end-of-PDU fields the {MAX,MIN}-NUMBER-OF-ITEMS subtags were missing. Signed-off-by: Andreas Lauser Signed-off-by: Florian Jost --- odxtools/templates/macros/printEndOfPdu.xml.jinja2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/odxtools/templates/macros/printEndOfPdu.xml.jinja2 b/odxtools/templates/macros/printEndOfPdu.xml.jinja2 index 83ac1bc9..2f1cef45 100644 --- a/odxtools/templates/macros/printEndOfPdu.xml.jinja2 +++ b/odxtools/templates/macros/printEndOfPdu.xml.jinja2 @@ -9,5 +9,11 @@ {{ peid.printElementIdSubtags(eopdu)|indent(1) }} + {%- if eopdu.max_number_of_items is not none %} + {{eopdu.max_number_of_items}} + {%- endif %} + {%- if eopdu.min_number_of_items is not none %} + {{eopdu.min_number_of_items}} + {%- endif %} {%- endmacro -%}