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

Clean up profile loading.

This commit is contained in:
mikeller 2016-07-27 02:46:13 +12:00
parent f9ee83d52e
commit 622a4fb821
9 changed files with 136 additions and 91 deletions

View file

@ -297,11 +297,9 @@ var MSP = {
CONFIG.profile = data.getUint8(10);
CONFIG.cpuload = data.getUint16(11, 1);
CONFIG.numProfiles = data.getUint8(13);
$('.tab-pid_tuning select[name="profilechange"]').val(CONFIG.profile);
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0")
&& CONFIG.numProfiles === 2) {
$('.tab-pid_tuning select[name="profilechange"] .profile3').hide();
}
CONFIG.rateProfile = data.getUint8(14);
TABS.pid_tuning.checkUpdateProfile();
sensor_status(CONFIG.activeSensors);
$('span.i2c-error').text(CONFIG.i2cError);