1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-21 15:25:22 +03:00

Fix bad powerTable in vtx lua output

This commit is contained in:
Richard Cooper 2019-12-10 10:15:35 +00:00
parent 91f4fbd009
commit a3e879288c

View file

@ -957,7 +957,7 @@ TABS.vtx.initialize = function (callback) {
frequenciesString += " },\n";
freqBandsString += bands_list[1].frequencies.length + ",\n";
for (index = 0, len = power_list.length; index < len; ++index) {
powersString += "[" + power_list[index].value + "]=" + power_list[index].label + ", ";
powersString += "[" + (index + 1) + "]=" + power_list[index].label + ", ";
}
powersString += "},\n";
return `return {\n ${frequenciesString} ${freqBandsString} ${bandsString} ${powersString}}`;