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:
parent
a5bc3e56ab
commit
372b51f897
5 changed files with 58 additions and 37 deletions
12
js/fc.js
12
js/fc.js
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue