BF/CF - Adding TARGET_CUSTOM SerialRx protocol option. (#484)

Allows configurator to choose to use custom target-defined serialRx
protocols. Requires target support
10.3.x-maintenance
Sean Kelly 2017-04-23 07:53:37 -07:00 committed by Nathan
parent 87b3aa0da7
commit 6ce9dc7773
1 changed files with 4 additions and 0 deletions

View File

@ -456,6 +456,10 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
serialRXtypes.push('Spektrum Bidir SRXL'); serialRXtypes.push('Spektrum Bidir SRXL');
} }
if (semver.gte(CONFIG.flightControllerVersion, "3.2.0")) {
serialRXtypes.push('TARGET_CUSTOM');
}
var serialRX_e = $('select.serialRX'); var serialRX_e = $('select.serialRX');
for (var i = 0; i < serialRXtypes.length; i++) { for (var i = 0; i < serialRXtypes.length; i++) {
serialRX_e.append('<option value="' + i + '">' + serialRXtypes[i] + '</option>'); serialRX_e.append('<option value="' + i + '">' + serialRXtypes[i] + '</option>');