mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 16:55:22 +03:00
Cleanup 2.1 version
This commit is contained in:
parent
cb1ff69703
commit
79a16a8fe3
13 changed files with 43 additions and 163 deletions
|
@ -215,11 +215,8 @@ TABS.sensors.initialize = function (callback) {
|
|||
checkboxes.eq(5).prop('disabled', true);
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "2.1.0")) {
|
||||
if (!bit_check(CONFIG.activeSensors, 7))
|
||||
checkboxes.eq(6).prop('disabled', true);
|
||||
} else {
|
||||
$(".requires-v2_1_0").hide();
|
||||
if (!bit_check(CONFIG.activeSensors, 7)) {
|
||||
checkboxes.eq(6).prop('disabled', true);
|
||||
}
|
||||
|
||||
$('.tab-sensors .info .checkboxes input').change(function () {
|
||||
|
@ -486,7 +483,7 @@ TABS.sensors.initialize = function (callback) {
|
|||
}, rates.airspeed, true);
|
||||
}
|
||||
|
||||
if (checkboxes[6] && (semver.gte(CONFIG.flightControllerVersion, "2.1.0"))) {
|
||||
if (checkboxes[6]) {
|
||||
helper.interval.add('temperature_pull', function temperature_data_pull() {
|
||||
|
||||
/*
|
||||
|
@ -512,11 +509,7 @@ TABS.sensors.initialize = function (callback) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, '2.1.0')) {
|
||||
MSP.send_message(MSPCodes.MSP2_INAV_DEBUG, false, false, update_debug_graphs);
|
||||
} else {
|
||||
MSP.send_message(MSPCodes.MSP_DEBUG, false, false, update_debug_graphs);
|
||||
}
|
||||
MSP.send_message(MSPCodes.MSP2_INAV_DEBUG, false, false, update_debug_graphs);
|
||||
}, rates.debug, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue