1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-27 02:05:21 +03:00

Update sonar elements (#4305)

This commit is contained in:
Mark Haslinghuis 2025-01-20 14:52:29 +01:00 committed by GitHub
parent b4a9fabe31
commit 072858b400
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -369,8 +369,16 @@ setup.initialize = function (callback) {
"VIRTUAL", "VIRTUAL",
]; ];
const sonarElements = ["NONE", "HCSR04", "TFMINI", "TF02"]; const sonarElements = [
"NONE",
"HCSR04",
"TFMINI",
"TF02",
"MTF01",
"MTF02",
"MTF01P",
"MTF02P",
];
// remove deprecated sensors or add new ones // remove deprecated sensors or add new ones
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) { if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_47)) {
gyroElements.splice(gyroElements.indexOf("L3G4200D"), 1); gyroElements.splice(gyroElements.indexOf("L3G4200D"), 1);