1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 20:10:11 +03:00

Change arming checks to a table

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2016-12-29 23:44:00 +10:00
parent a5bc3e56ab
commit 372b51f897
5 changed files with 58 additions and 37 deletions

View file

@ -678,16 +678,4 @@ var FC = {
return retVal;
},
processArmingFlags: function (flag) {
var retVal = [],
flagNames = this.getArmingFlags();
for (var bit in flagNames) {
if (flagNames.hasOwnProperty(bit) && bit_check(flag, bit)) {
retVal.push(flagNames[bit]);
}
}
return retVal;
}
};