Skip to content

Commit

Permalink
Enable telemetry for CRSF, GHST and FPORT
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Apr 19, 2024
1 parent afbceec commit 191b7e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/js/Features.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ const Features = function (config) {
self._features.push(feature);
}
}

// Add TELEMETRY feature if any of the following build options are enabled
let enableTelemetry = false;
if (config.buildOptions.some(opt => opt.includes('CRSF') || opt.includes('GHST') || opt.includes('FPORT'))) {
enableTelemetry = true;
}

if (enableTelemetry) {
self._features.push({bit: 10, group: 'telemetry', name: 'TELEMETRY', haveTip: true, dependsOn: 'TELEMETRY'});
}
}

self._features.sort((a, b) => a.name.localeCompare(b.name, window.navigator.language, { ignorePunctuation: true }));
Expand Down

0 comments on commit 191b7e9

Please sign in to comment.