disable accelerometer sensor graph when accelerometer not enabled
parent
af15ff910a
commit
924e9d0a16
|
@ -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…
Reference in New Issue