fix(lua): Legacy input names (#4310)
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user