|
1 | 1 | import semver from "semver"; |
2 | 2 | import FC from "./fc"; |
3 | 3 | import { API_VERSION_1_47 } from "./data_storage"; |
4 | | -import { removeArrayElement, addArrayElement, addArrayElementAfter } from "./utils/array"; |
| 4 | +import { removeArrayElement, addArrayElement, addArrayElementsAfter } from "./utils/array"; |
5 | 5 |
|
6 | 6 | export function sensorTypes() { |
7 | 7 | const sensorTypes = { |
@@ -111,13 +111,13 @@ export function sensorTypes() { |
111 | 111 | if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) { |
112 | 112 | removeArrayElement(gyroElements, "L3G4200D"); |
113 | 113 | removeArrayElement(gyroElements, "MPU3050"); |
114 | | - addArrayElementAfter(gyroElements, "LSM6DSV16X", "IIM42653"); |
| 114 | + addArrayElementsAfter(gyroElements, "LSM6DSV16X", ["IIM42653", "ICM45605", "ICM45686"]); |
115 | 115 |
|
116 | 116 | removeArrayElement(accElements, "ADXL345"); |
117 | 117 | removeArrayElement(accElements, "MMA8452"); |
118 | 118 | removeArrayElement(accElements, "BMA280"); |
119 | 119 | removeArrayElement(accElements, "LSM303DLHC"); |
120 | | - addArrayElementAfter(accElements, "LSM6DSV16X", "IIM42653"); |
| 120 | + addArrayElementsAfter(accElements, "LSM6DSV16X", ["IIM42653", "ICM45605", "ICM45686"]); |
121 | 121 |
|
122 | 122 | addArrayElement(gpsElements, "VIRTUAL"); |
123 | 123 | } |
|
0 commit comments