Merge pull request #48 from NightHawk32/new_stuff

Fixed bug with profile selector: It updates now on every status request.
10.3.x-maintenance
Albert Kravcov 2015-11-23 09:09:11 +01:00
commit 2eb45bc62f
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

@ -260,7 +260,8 @@ 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);
@ -313,13 +314,10 @@ function onConnect() {
// testing dataflash change END
// testing dataflash change END
}
}
function onClosed(result) {
if (result) { // All went as expected