1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-20 23:05:13 +03:00

Allow RSSI channel only on channels >= 5

Also, show CH# (e.g. CH7) rather than just the bare number in the
combobox, makes it more obvious that you're selecting an actual
channel number rather than an AUX channel number.
This commit is contained in:
Alberto García Hierro 2017-10-20 12:52:21 +01:00
parent aba2fc421c
commit 24f9823c1f

View file

@ -172,8 +172,8 @@ TABS.receiver.initialize = function (callback) {
// rssi
var rssi_channel_e = $('select[name="rssi_channel"]');
rssi_channel_e.append('<option value="0">Disabled</option>');
for (var i = 1; i < RC.active_channels + 1; i++) {
rssi_channel_e.append('<option value="' + i + '">' + i + '</option>');
for (var i = 5; i < RC.active_channels + 1; i++) {
rssi_channel_e.append('<option value="' + i + '">CH' + i + '</option>');
}
$('select[name="rssi_channel"]').val(MISC.rssi_channel);