show RSSI on failsafe tab
parent
b6f3f11ce6
commit
abceb8c7f7
|
@ -38,7 +38,11 @@ TABS.failsafe.initialize = function (callback, scrollPosition) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_rc_data() {
|
function get_rc_data() {
|
||||||
MSP.send_message(MSPCodes.MSP_RC, false, false, load_feature_config);
|
MSP.send_message(MSPCodes.MSP_RC, false, false, get_rssi_config);
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_rssi_config() {
|
||||||
|
MSP.send_message(MSPCodes.MSP_RSSI_CONFIG, false, false, load_feature_config);
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_feature_config() {
|
function load_feature_config() {
|
||||||
|
@ -88,6 +92,10 @@ TABS.failsafe.initialize = function (callback, scrollPosition) {
|
||||||
auxAssignment.push("");
|
auxAssignment.push("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof RSSI_CONFIG.channel !== 'undefined') {
|
||||||
|
auxAssignment[RSSI_CONFIG.channel - 5] += "<span class=\"modename\">" + "RSSI" + "</span>"; // Aux channels start at 5 in backend so we have to substract 5
|
||||||
|
}
|
||||||
|
|
||||||
for (var modeIndex = 0; modeIndex < AUX_CONFIG.length; modeIndex++) {
|
for (var modeIndex = 0; modeIndex < AUX_CONFIG.length; modeIndex++) {
|
||||||
|
|
||||||
var modeId = AUX_CONFIG_IDS[modeIndex];
|
var modeId = AUX_CONFIG_IDS[modeIndex];
|
||||||
|
|
Loading…
Reference in New Issue