Skip to content

Commit

Permalink
Make telemetry default for jeti (#4201)
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis authored Oct 3, 2024
1 parent 36ccc26 commit 6ad2601
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Features.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Features = function (config) {
// Add TELEMETRY feature if any of the following protocols are used: CRSF, GHST, FPORT
if (semver.gte(config.apiVersion, API_VERSION_1_46)) {
let enableTelemetry = false;
if (config.buildOptions.some(opt => opt.includes('CRSF') || opt.includes('GHST') || opt.includes('FPORT'))) {
if (config.buildOptions.some(opt => opt.includes('CRSF') || opt.includes('GHST') || opt.includes('FPORT') || opt.includes('JETI'))) {
enableTelemetry = true;
}

Expand Down
1 change: 1 addition & 0 deletions src/js/tabs/firmware_flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ firmware_flasher.initialize = function (callback) {
'USE_SERIALRX_CRSF',
'USE_SERIALRX_FPORT',
'USE_SERIALRX_GHST',
'USE_SERIALRX_JETIEXBUS',
].includes(radioProtocol);

$('select[name="telemetryProtocols"]').attr('disabled', hasTelemetryEnabledByDefault);
Expand Down

0 comments on commit 6ad2601

Please sign in to comment.