Skip to content

Commit 8744408

Browse files
committed
Add support for ICM45686
1 parent fe72268 commit 8744408

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/sensor_types.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import semver from "semver";
22
import FC from "./fc";
33
import { API_VERSION_1_47 } from "./data_storage";
4-
import { removeArrayElement, addArrayElement, addArrayElementAfter } from "./utils/array";
4+
import { removeArrayElement, addArrayElement, addArrayElementsAfter } from "./utils/array";
55

66
export function sensorTypes() {
77
const sensorTypes = {
@@ -111,13 +111,13 @@ export function sensorTypes() {
111111
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
112112
removeArrayElement(gyroElements, "L3G4200D");
113113
removeArrayElement(gyroElements, "MPU3050");
114-
addArrayElementAfter(gyroElements, "LSM6DSV16X", "IIM42653");
114+
addArrayElementsAfter(gyroElements, "LSM6DSV16X", ["IIM42653", "ICM45686"]);
115115

116116
removeArrayElement(accElements, "ADXL345");
117117
removeArrayElement(accElements, "MMA8452");
118118
removeArrayElement(accElements, "BMA280");
119119
removeArrayElement(accElements, "LSM303DLHC");
120-
addArrayElementAfter(accElements, "LSM6DSV16X", "IIM42653");
120+
addArrayElementsAfter(accElements, "LSM6DSV16X", ["IIM42653", "ICM45686"]);
121121

122122
addArrayElement(gpsElements, "VIRTUAL");
123123
}

0 commit comments

Comments
 (0)