mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
disable accelerometer sensor graph when accelerometer not enabled
This commit is contained in:
parent
af15ff910a
commit
924e9d0a16
1 changed files with 3 additions and 0 deletions
|
@ -185,6 +185,9 @@ TABS.sensors.initialize = function (callback) {
|
||||||
|
|
||||||
// disable graphs for sensors that are missing
|
// disable graphs for sensors that are missing
|
||||||
var checkboxes = $('.tab-sensors .info .checkboxes input');
|
var checkboxes = $('.tab-sensors .info .checkboxes input');
|
||||||
|
if (!have_sensor(CONFIG.activeSensors, 'acc')) { // acc
|
||||||
|
checkboxes.eq(1).prop('disabled', true);
|
||||||
|
}
|
||||||
if (!bit_check(CONFIG.activeSensors, 1)) { // baro
|
if (!bit_check(CONFIG.activeSensors, 1)) { // baro
|
||||||
checkboxes.eq(3).prop('disabled', true);
|
checkboxes.eq(3).prop('disabled', true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue