show RSSI on failsafe tab

10.5.x-maintenance
timman2er 2018-10-10 00:09:34 +02:00
parent b6f3f11ce6
commit abceb8c7f7
1 changed files with 9 additions and 1 deletions

View File

@ -38,7 +38,11 @@ TABS.failsafe.initialize = function (callback, scrollPosition) {
}
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() {
@ -88,6 +92,10 @@ TABS.failsafe.initialize = function (callback, scrollPosition) {
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++) {
var modeId = AUX_CONFIG_IDS[modeIndex];