Made display of arming disabled reasons match number of beeps.

10.3.x-maintenance
mikeller 2018-01-13 18:22:46 +13:00
parent 8c9ca07b3f
commit cfd848a4d1
2 changed files with 2 additions and 2 deletions

View File

@ -526,7 +526,7 @@
"message": "Arming Allowed"
},
"initialSetupArmingDisableFlagsTooltip": {
"message": "List of flags indicating why arming is currently not allowed. Please refer to the Wiki for a description of what these flags mean."
"message": "List of flags indicating why arming is currently not allowed. The first and most important value corresponds to the number of warning beeps that sound when arming is attempted. Please refer to the Wiki ('Arming Sequence & Safety' page) for a description of what these flags mean."
},
"initialSetupGPSHead": {
"message": "GPS"

View File

@ -192,7 +192,7 @@ TABS.setup.initialize = function (callback) {
var flagIndicies = [];
for (var i = 0; i < 32; i++) {
if (CONFIG.armingDisableFlags & (1 << i)) {
flagIndicies.push(i);
flagIndicies.push(i + 1);
}
}
armingString = flagIndicies;