mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 01:05:12 +03:00
God knows why Serial Config was requested to display flight modes....
This commit is contained in:
parent
24f07e23d6
commit
cb3a7e94fe
1 changed files with 2 additions and 10 deletions
|
@ -35,21 +35,13 @@ TABS.auxiliary.initialize = function (callback) {
|
|||
//Copy global settings into local ones
|
||||
LOCAL_AUX_CONFIG = Array.from(FC.AUX_CONFIG);
|
||||
LOCAL_AUX_CONFIG_IDS = Array.from(FC.AUX_CONFIG_IDS);
|
||||
|
||||
|
||||
get_rc_data();
|
||||
});
|
||||
}
|
||||
|
||||
function get_rc_data() {
|
||||
if (FC.SERIAL_CONFIG.ports.length == 0) {
|
||||
MSP.send_message(MSPCodes.MSP_RC, false, false, get_ports_data);
|
||||
} else {
|
||||
MSP.send_message(MSPCodes.MSP_RC, false, false, load_html);
|
||||
}
|
||||
}
|
||||
|
||||
function get_ports_data() {
|
||||
MSP.send_message(MSPCodes.MSP2_CF_SERIAL_CONFIG, false, false, load_html);
|
||||
MSP.send_message(MSPCodes.MSP_RC, false, false, load_html);
|
||||
}
|
||||
|
||||
function load_html() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue