@@ -14,7 +14,7 @@ import inflection from "inflection";
1414const auxiliary = { } ;
1515
1616// BF build Options mapped to buildKey.
17- let buildMap = [
17+ const buildMap = [
1818 { buildKey : 'cam' , buildOption : [ 'USE_CAMERA_CONTROL' ] } ,
1919 { buildKey : 'div' , buildOption : [ 'USE_ARCO_TRAINER' , 'USE_DASHBOARD' , 'USE_PINIO' ] } ,
2020 { buildKey : 'dshot' , buildOption : [ 'USE_DSHOT' ] } ,
@@ -32,7 +32,7 @@ const flightModes = ["ARM","ANGLE","HORIZON","ANTI GRAVITY","MAG","HEADFREE","HE
3232 "FAILSAFE" , "AIR MODE" , "FPV ANGLE MIX" , "FLIP OVER AFTER CRASH" , "USER1" , "USER2" , "USER3" , "USER4" , "ACRO TRAINER" , "LAUNCH CONTROL" ] ;
3333
3434// Categories to be mapped with buildMap. Category 'all' are virtuel and always included
35- let categoryTable = [
35+ const categoryTable = [
3636 { name : '3D' , buildKey : [ 'dshot' ] , modes : [ '3D' , '3D DISABLE / SWITCH' ] } ,
3737 { name : 'BEEP' , buildKey : [ 'all' ] , modes : [ 'BEEPERON' , 'BEEPER' , 'BEEPER MUTE' , 'GPS BEEP SATELLITE COUNT' ] } ,
3838 { name : 'BLACKBOX' , buildKey : [ 'all' ] , modes : [ 'BLACKBOX' , 'BLACKBOX ERASE' ] } ,
@@ -725,9 +725,7 @@ auxiliary.initialize = function (callback) {
725725 } , 0 ) ;
726726
727727 // minimum change to autoselect is 100
728- if ( largest < 100 ) {
729- return fillPrevChannelsValues ( ) ;
730- }
728+ if ( largest < 100 ) return fillPrevChannelsValues ( ) ;
731729
732730 const indexOfMaxValue = diff_array . indexOf ( largest ) ;
733731 if ( indexOfMaxValue >= 4 && indexOfMaxValue != RSSI_channel - 1 ) {
0 commit comments