From 6ad260106f129165f06bcbfcde7062dfa7ea7c7c Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Thu, 3 Oct 2024 20:11:45 +0200 Subject: [PATCH] Make telemetry default for jeti (#4201) --- src/js/Features.js | 2 +- src/js/tabs/firmware_flasher.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/Features.js b/src/js/Features.js index 4eaa3d142f..13e48959f1 100644 --- a/src/js/Features.js +++ b/src/js/Features.js @@ -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; } diff --git a/src/js/tabs/firmware_flasher.js b/src/js/tabs/firmware_flasher.js index a7366374c8..61587cb307 100644 --- a/src/js/tabs/firmware_flasher.js +++ b/src/js/tabs/firmware_flasher.js @@ -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);