Merge pull request #48 from NightHawk32/new_stuff
Fixed bug with profile selector: It updates now on every status request.10.3.x-maintenance
commit
2eb45bc62f
|
@ -227,6 +227,7 @@ var MSP = {
|
||||||
CONFIG.activeSensors = data.getUint16(4, 1);
|
CONFIG.activeSensors = data.getUint16(4, 1);
|
||||||
CONFIG.mode = data.getUint32(6, 1);
|
CONFIG.mode = data.getUint32(6, 1);
|
||||||
CONFIG.profile = data.getUint8(10);
|
CONFIG.profile = data.getUint8(10);
|
||||||
|
$('select[name="profilechange"]').val(CONFIG.profile);
|
||||||
|
|
||||||
sensor_status(CONFIG.activeSensors);
|
sensor_status(CONFIG.activeSensors);
|
||||||
$('span.i2c-error').text(CONFIG.i2cError);
|
$('span.i2c-error').text(CONFIG.i2cError);
|
||||||
|
|
|
@ -260,7 +260,8 @@ function onConnect() {
|
||||||
|
|
||||||
var dataflash = $('#dataflash_wrapper');
|
var dataflash = $('#dataflash_wrapper');
|
||||||
dataflash.show();
|
dataflash.show();
|
||||||
|
|
||||||
|
MSP.send_message(MSP_codes.MSP_STATUS, false, false);
|
||||||
|
|
||||||
// TEST code for dataflash status in header
|
// TEST code for dataflash status in header
|
||||||
MSP.send_message(MSP_codes.MSP_DATAFLASH_SUMMARY, false, false);
|
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) {
|
function onClosed(result) {
|
||||||
if (result) { // All went as expected
|
if (result) { // All went as expected
|
||||||
|
|
Loading…
Reference in New Issue