IMPROVEMENT: As per suggestion, one RX protocol, and one Telem protocol (#3161)
parent
23b74d9998
commit
072be2eaaf
|
@ -6826,10 +6826,10 @@
|
|||
"message": "Other Options"
|
||||
},
|
||||
"firmwareFlasherBuildRadioProtocols": {
|
||||
"message": "Radio Protocols"
|
||||
"message": "Radio Protocol"
|
||||
},
|
||||
"firmwareFlasherBuildTelemetryProtocols": {
|
||||
"message": "Telemetry Protocols"
|
||||
"message": "Telemetry Protocol"
|
||||
},
|
||||
"firmwareFlasherBuildMotorProtocols": {
|
||||
"message": "Motor Protocols"
|
||||
|
|
|
@ -226,7 +226,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
#branchInfo {
|
||||
#branchInfo, #radioProtocolInfo, #telemetryProtocolInfo {
|
||||
.select2-selection__rendered {
|
||||
line-height: 30px !important;
|
||||
}
|
||||
|
|
|
@ -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')) {
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
<div style="width: 49%; float: left;">
|
||||
<strong i18n="firmwareFlasherBuildRadioProtocols"></strong>
|
||||
<div id="radioProtocolInfo" class="build-options-wrapper">
|
||||
<select id="radioProtocols" name="radioProtocols" multiple="multiple" class="select2">
|
||||
<select id="radioProtocols" name="radioProtocols" class="select2">
|
||||
</select>
|
||||
<div class="helpicon cf_tip_wide" i18n_title="firmwareFlasherRadioProtocolDescription"></div>
|
||||
</div>
|
||||
|
@ -170,7 +170,7 @@
|
|||
<div style="width: 49%; float: right;">
|
||||
<strong i18n="firmwareFlasherBuildTelemetryProtocols"></strong>
|
||||
<div id="telemetryProtocolInfo" class="build-options-wrapper">
|
||||
<select id="telemetryProtocols" name="telemetryProtocols" multiple="multiple" class="select2">
|
||||
<select id="telemetryProtocols" name="telemetryProtocols" class="select2">
|
||||
</select>
|
||||
<div class="helpicon cf_tip_wide" i18n_title="firmwareFlasherTelemetryProtocolDescription"></div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue