File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,8 @@ setup.initialize = function (callback) {
268
268
269
269
const showSensorInfo = function ( ) {
270
270
const gyroElements = [
271
+ 'AUTO' ,
271
272
'NONE' ,
272
- 'DEFAULT' ,
273
273
'MPU6050' ,
274
274
'L3G4200D' ,
275
275
'MPU3050' ,
@@ -292,7 +292,7 @@ setup.initialize = function (callback) {
292
292
] ;
293
293
294
294
const accElements = [
295
- 'DEFAULT ' ,
295
+ 'AUTO ' ,
296
296
'NONE' ,
297
297
'ADXL345' ,
298
298
'MPU6050' ,
@@ -350,6 +350,17 @@ setup.initialize = function (callback) {
350
350
'TF02' ,
351
351
] ;
352
352
353
+ // remove deprecated sensors
354
+ if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_47 ) ) {
355
+ gyroElements . splice ( gyroElements . indexOf ( "L3G4200D" ) , 1 ) ;
356
+ gyroElements . splice ( gyroElements . indexOf ( "MPU3050" ) , 1 ) ;
357
+
358
+ accElements . splice ( accElements . indexOf ( "ADXL345" ) , 1 ) ;
359
+ accElements . splice ( accElements . indexOf ( "MMA8452" ) , 1 ) ;
360
+ accElements . splice ( accElements . indexOf ( "BMA280" ) , 1 ) ;
361
+ accElements . splice ( accElements . indexOf ( "LSM303DLHC" ) , 1 ) ;
362
+ }
363
+
353
364
if ( semver . gte ( FC . CONFIG . apiVersion , API_VERSION_1_46 ) ) {
354
365
MSP . send_message ( MSPCodes . MSP2_SENSOR_CONFIG_ACTIVE , false , false , function ( ) {
355
366
// Sensor info
You can’t perform that action at this time.
0 commit comments