fix(lua): Legacy input names (#4310)

This commit is contained in:
Raphael Coeffic
2023-11-13 08:28:38 +10:00
committed by GitHub
parent 95388cb710
commit f0b0c3d906
+2 -3
View File
@@ -3,11 +3,10 @@
// This file has been generated from the target's JSON hardware description // This file has been generated from the target's JSON hardware description
// //
{% set pot_inputs = adc_inputs.inputs | selectattr('type', '==', 'POT') | list %} {% set inputs = adc_inputs.inputs | selectattr('type', '==', 'FLEX') | list %}
{% set axis_inputs = adc_inputs.inputs | selectattr('type', '==', 'AXIS') | list %}
static const LuaSingleField _lua_inputs[] = { static const LuaSingleField _lua_inputs[] = {
{% for input in (pot_inputs + axis_inputs) %} {% for input in inputs %}
{% set li = legacy_inputs[input.name] %} {% set li = legacy_inputs[input.name] %}
{ MIXSRC_FIRST_POT + {{ loop.index0 }}, "{{ li.lua }}", "{{ li.description }}" }, { MIXSRC_FIRST_POT + {{ loop.index0 }}, "{{ li.lua }}", "{{ li.description }}" },
{% endfor %} {% endfor %}