1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 19:40:22 +03:00

Fixed bug with profile selector: It updates now on every status request.

This commit is contained in:
NightHawk32 2015-11-23 01:47:09 -05:00
parent 3c05c218c5
commit 11fcf24258
2 changed files with 5 additions and 6 deletions

View file

@ -227,6 +227,7 @@ var MSP = {
CONFIG.activeSensors = data.getUint16(4, 1);
CONFIG.mode = data.getUint32(6, 1);
CONFIG.profile = data.getUint8(10);
$('select[name="profilechange"]').val(CONFIG.profile);
sensor_status(CONFIG.activeSensors);
$('span.i2c-error').text(CONFIG.i2cError);

View file

@ -261,6 +261,7 @@ function onConnect() {
var dataflash = $('#dataflash_wrapper');
dataflash.show();
MSP.send_message(MSP_codes.MSP_STATUS, false, false);
// TEST code for dataflash status in header
MSP.send_message(MSP_codes.MSP_DATAFLASH_SUMMARY, false, false);
@ -316,9 +317,6 @@ function onConnect() {
// testing dataflash change END
}
function onClosed(result) {