@@ -14,7 +14,7 @@ import inflection from "inflection";
14
14
const auxiliary = { } ;
15
15
16
16
// BF build Options mapped to buildKey.
17
- let buildMap = [
17
+ const buildMap = [
18
18
{ buildKey : 'cam' , buildOption : [ 'USE_CAMERA_CONTROL' ] } ,
19
19
{ buildKey : 'div' , buildOption : [ 'USE_ARCO_TRAINER' , 'USE_DASHBOARD' , 'USE_PINIO' ] } ,
20
20
{ buildKey : 'dshot' , buildOption : [ 'USE_DSHOT' ] } ,
@@ -32,7 +32,7 @@ const flightModes = ["ARM","ANGLE","HORIZON","ANTI GRAVITY","MAG","HEADFREE","HE
32
32
"FAILSAFE" , "AIR MODE" , "FPV ANGLE MIX" , "FLIP OVER AFTER CRASH" , "USER1" , "USER2" , "USER3" , "USER4" , "ACRO TRAINER" , "LAUNCH CONTROL" ] ;
33
33
34
34
// Categories to be mapped with buildMap. Category 'all' are virtuel and always included
35
- let categoryTable = [
35
+ const categoryTable = [
36
36
{ name : '3D' , buildKey : [ 'dshot' ] , modes : [ '3D' , '3D DISABLE / SWITCH' ] } ,
37
37
{ name : 'BEEP' , buildKey : [ 'all' ] , modes : [ 'BEEPERON' , 'BEEPER' , 'BEEPER MUTE' , 'GPS BEEP SATELLITE COUNT' ] } ,
38
38
{ name : 'BLACKBOX' , buildKey : [ 'all' ] , modes : [ 'BLACKBOX' , 'BLACKBOX ERASE' ] } ,
@@ -725,9 +725,7 @@ auxiliary.initialize = function (callback) {
725
725
} , 0 ) ;
726
726
727
727
// minimum change to autoselect is 100
728
- if ( largest < 100 ) {
729
- return fillPrevChannelsValues ( ) ;
730
- }
728
+ if ( largest < 100 ) return fillPrevChannelsValues ( ) ;
731
729
732
730
const indexOfMaxValue = diff_array . indexOf ( largest ) ;
733
731
if ( indexOfMaxValue >= 4 && indexOfMaxValue != RSSI_channel - 1 ) {
0 commit comments