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.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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue