Merge pull request #446 from mikeller/added_sdcard_feature
Added feature for SDCard.10.3.x-maintenance
commit
160d574cd9
|
@ -550,6 +550,9 @@
|
||||||
"featureSUPEREXPO_RATES": {
|
"featureSUPEREXPO_RATES": {
|
||||||
"message": "Super Expo Rates"
|
"message": "Super Expo Rates"
|
||||||
},
|
},
|
||||||
|
"featureSDCARD": {
|
||||||
|
"message": "SDCard support (for logging)"
|
||||||
|
},
|
||||||
"featureOSD": {
|
"featureOSD": {
|
||||||
"message": "On Screen Display"
|
"message": "On Screen Display"
|
||||||
},
|
},
|
||||||
|
|
|
@ -53,10 +53,16 @@ var Features = function (config) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (semver.gte(config.flightControllerVersion, "2.8.0") && !semver.gte(config.flightControllerVersion, "3.0.0")) {
|
if (semver.gte(config.flightControllerVersion, "2.8.0")) {
|
||||||
features.push(
|
if (!semver.gte(config.flightControllerVersion, "3.0.0")) {
|
||||||
{bit: 23, group: 'pidTuning', name: 'SUPEREXPO_RATES'}
|
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")) {
|
if (semver.gte(config.flightControllerVersion, "3.0.0")) {
|
||||||
|
|
Loading…
Reference in New Issue