From d503c79ebbd2fe0e4cfc1709b8a1b40c45b666c4 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Thu, 23 Feb 2017 14:37:51 +1300 Subject: [PATCH] Added feature for SDCard. --- _locales/en/messages.json | 3 +++ js/Features.js | 14 ++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 4c97cbcc..5be762af 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -550,6 +550,9 @@ "featureSUPEREXPO_RATES": { "message": "Super Expo Rates" }, + "featureSDCARD": { + "message": "SDCard support (for logging)" + }, "featureOSD": { "message": "On Screen Display" }, diff --git a/js/Features.js b/js/Features.js index ec7ced9c..f7aae595 100644 --- a/js/Features.js +++ b/js/Features.js @@ -53,10 +53,16 @@ var Features = function (config) { ); } - if (semver.gte(config.flightControllerVersion, "2.8.0") && !semver.gte(config.flightControllerVersion, "3.0.0")) { - features.push( - {bit: 23, group: 'pidTuning', name: 'SUPEREXPO_RATES'} - ); + if (semver.gte(config.flightControllerVersion, "2.8.0")) { + if (!semver.gte(config.flightControllerVersion, "3.0.0")) { + features.push( + {bit: 23, group: 'pidTuning', name: 'SUPEREXPO_RATES'} + ); + } else { + features.push( + {bit: 23, group: 'other', name: 'SDCARD'} + ); + } } if (semver.gte(config.flightControllerVersion, "3.0.0")) {