From 78804f1f39eb1ae36f79eaf9b9b3423525f3cd67 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Thu, 3 Oct 2024 13:34:40 +0200 Subject: [PATCH] Make telemetry default for jeti --- 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);