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 #1214 from timman2er/show_rssi_failsafe_tab

Show rssi on failsafe tab
This commit is contained in:
Michael Keller 2018-10-11 00:26:35 +13:00 committed by GitHub
commit 1eead18fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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];