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

Add arming disable flags to setup tab

This commit is contained in:
Dan Nixon 2017-08-06 13:12:28 +01:00
parent 9622988631
commit be70860172
5 changed files with 31 additions and 1 deletions

View file

@ -83,6 +83,18 @@ MspHelper.prototype.process_data = function(dataHandler) {
CONFIG.numProfiles = data.readU8();
CONFIG.rateProfile = data.readU8();
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
// Read flight mode flags
var byteCount = data.readU8();
for (var i = 0; i < byteCount; i++) {
data.readU8();
}
// Read arming disable flags
data.readU8(); // Flag count
CONFIG.armingDisableFlags = data.readU32();
}
TABS.pid_tuning.checkUpdateProfile(true);
}