Skip to content

Commit

Permalink
God knows why Serial Config was requested to display flight modes....
Browse files Browse the repository at this point in the history
  • Loading branch information
DzikuVx committed May 12, 2024
1 parent 24f07e2 commit cb3a7e9
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tabs/auxiliary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cb3a7e9

Please sign in to comment.