File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,19 @@ TABS.setup.initialize = function (callback) {
182182
183183 function get_slow_data ( ) {
184184 MSP . send_message ( MSPCodes . MSP_STATUS , false , false , function ( ) {
185- arming_disable_flags_e . text ( CONFIG . armingDisableFlags == 0 ? chrome . i18n . getMessage ( 'initialSetupArmingAllowed' ) : CONFIG . armingDisableFlags . toString ( 2 ) ) ;
185+ var armingString = '' ;
186+ if ( CONFIG . armingDisableFlags == 0 ) {
187+ armingString = chrome . i18n . getMessage ( 'initialSetupArmingAllowed' ) ;
188+ } else {
189+ var flagIndicies = [ ] ;
190+ for ( var i = 0 ; i < 32 ; i ++ ) {
191+ if ( CONFIG . armingDisableFlags & ( 1 << i ) ) {
192+ flagIndicies . push ( i ) ;
193+ }
194+ }
195+ armingString = flagIndicies ;
196+ }
197+ arming_disable_flags_e . text ( armingString ) ;
186198 } ) ;
187199
188200 MSP . send_message ( MSPCodes . MSP_ANALOG , false , false , function ( ) {
You can’t perform that action at this time.
0 commit comments