mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 00:05:22 +03:00
Merge pull request #137 from TheAngularity/patch-2
disable accelerometer sensor graph when accelerometer not enabled
This commit is contained in:
commit
53893b0e23
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
|
||||
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
|
||||
checkboxes.eq(3).prop('disabled', true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue