1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

IMPROVEMENT: As per suggestion, one RX protocol, and one Telem protocol (#3161)

This commit is contained in:
J Blackman 2022-12-26 14:48:05 +11:00 committed by GitHub
parent 23b74d9998
commit 072be2eaaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 11 deletions

View file

@ -777,9 +777,6 @@ firmware_flasher.initialize = function (callback) {
let request = {
target: summary.target,
release: summary.release,
radioProtocols: [],
telemetryProtocols: [],
motorProtocols: [],
options: [],
classicBuild: false,
};
@ -787,11 +784,11 @@ firmware_flasher.initialize = function (callback) {
request.classicBuild = !summary.cloudBuild || $('input[name="classicBuildModeCheckbox"]').is(':checked');
if (!request.classicBuild) {
$('select[name="radioProtocols"] option:selected').each(function () {
request.radioProtocols.push($(this).val());
request.options.push($(this).val());
});
$('select[name="telemetryProtocols"] option:selected').each(function () {
request.telemetryProtocols.push($(this).val());
request.options.push($(this).val());
});
$('select[name="options"] option:selected').each(function () {
@ -799,7 +796,7 @@ firmware_flasher.initialize = function (callback) {
});
$('select[name="motorProtocols"] option:selected').each(function () {
request.motorProtocols.push($(this).val());
request.options.push($(this).val());
});
if ($('input[name="expertModeCheckbox"]').is(':checked')) {