diff --git a/js/msp.js b/js/msp.js index af9ea0d2c9..7073848680 100644 --- a/js/msp.js +++ b/js/msp.js @@ -208,17 +208,6 @@ function process_data(command, message_buffer, message_length_expected) { CONFIG.multiType = data.getUint8(1); CONFIG.msp_version = data.getUint8(2); CONFIG.capability = data.getUint32(3, 1); - - $('.software-version').html(CONFIG.version); - - // IDENT received, show the tab content - if (!configuration_received) { - GUI.timeout_remove('connecting'); // kill connecting timer - configuration_received = true; - - $('div#port-picker a.connect').text('Disconnect').addClass('active'); - $('#tabs li a:first').click(); - } break; case MSP_codes.MSP_STATUS: CONFIG.cycleTime = data.getUint16(0, 1); diff --git a/js/serial_backend.js b/js/serial_backend.js index f55e5ebad0..9b5cce1c4a 100644 --- a/js/serial_backend.js +++ b/js/serial_backend.js @@ -199,10 +199,18 @@ function onOpen(openInfo) { send_message(MSP_codes.MSP_ACC_TRIM, MSP_codes.MSP_ACC_TRIM); // request configuration data - send_message(MSP_codes.MSP_IDENT, MSP_codes.MSP_IDENT); send_message(MSP_codes.MSP_STATUS, MSP_codes.MSP_STATUS); send_message(MSP_codes.MSP_PID, MSP_codes.MSP_PID); - send_message(MSP_codes.MSP_RC_TUNING, MSP_codes.MSP_RC_TUNING); + send_message(MSP_codes.MSP_RC_TUNING, MSP_codes.MSP_RC_TUNING); + send_message(MSP_codes.MSP_IDENT, MSP_codes.MSP_IDENT, false, function() { + GUI.timeout_remove('connecting'); // kill connecting timer + + $('.software-version').html(CONFIG.version); + + configuration_received = true; + $('div#port-picker a.connect').text('Disconnect').addClass('active'); + $('#tabs li a:first').click(); + }); }, connection_delay * 1000); } else { console.log('Failed to open serial port');