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

Make telemetry default for jeti (#4201)

This commit is contained in:
Mark Haslinghuis 2024-10-03 20:11:45 +02:00 committed by GitHub
parent 36ccc26acc
commit 6ad260106f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}

View file

@ -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);