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:
parent
23b74d9998
commit
072be2eaaf
4 changed files with 8 additions and 11 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue