px4_parameters.hpp.jinja: explicitly set .name attribute

Fixes the compile error on llvm:
mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Wc99-designator]
This commit is contained in:
Beat Küng 2022-05-24 09:39:56 +02:00 committed by Daniel Agar
parent 1370cc0d74
commit 2c96bb3746

View File

@ -23,7 +23,7 @@ enum class params : uint16_t {
static constexpr param_info_s parameters[] = {
{% for param in params %}
{
"{{ param.attrib["name"] }}",
.name = "{{ param.attrib["name"] }}",
{%- if param.attrib["type"] == "FLOAT" %}
.val = {{ "{" }} .f = {{ param.attrib["default"] }} {{ "}" }},
{%- elif param.attrib["type"] == "INT32" %}