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

Merge pull request #1849 from McGiverGim/fix_vtx_powerlevel

Fix VTX when PowerLevel tag is empty
This commit is contained in:
Michael Keller 2020-01-17 01:40:35 +13:00 committed by GitHub
commit 672923e810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,7 +253,7 @@ TABS.vtx.initialize = function (callback) {
if (VTX_CONFIG.vtx_table_available) {
let powerLevel = TABS.vtx.VTXTABLE_POWERLEVEL_LIST[VTX_CONFIG.vtx_power - 1].vtxtable_powerlevel_label;
if (powerLevel.trim() === '') {
powerLevel = i;
powerLevel = VTX_CONFIG.vtx_power;
}
$("#vtx_power_description").text(powerLevel);
} else {