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:
parent
3c05c218c5
commit
11fcf24258
2 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue