1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Merge pull request #137 from TheAngularity/patch-2

disable accelerometer sensor graph when accelerometer not enabled
This commit is contained in:
Anton 2016-07-22 12:08:16 +02:00 committed by GitHub
commit 53893b0e23

View file

@ -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);
}