We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9da8aec commit 8653b1fCopy full SHA for 8653b1f
src/js/tabs/vtx.js
@@ -229,6 +229,11 @@ vtx.initialize = function (callback) {
229
TABS.vtx.VTXTABLE_POWERLEVEL_LIST[i - 1].vtxtable_powerlevel_label = vtxConfig.vtx_table.powerlevels_list[i - 1].label;
230
}
231
232
+ // Setting the latest vtx power to prevent out of bounds error
233
+ if (FC.VTX_CONFIG.vtx_power > TABS.vtx.VTXTABLE_POWERLEVEL_LIST.length) {
234
+ FC.VTX_CONFIG.vtx_power = TABS.vtx.VTXTABLE_POWERLEVEL_LIST.length;
235
+ }
236
+
237
vtxcallback_after_read();
238
239
0 commit comments