Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/betaflight/betaflight-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorctzsnooze <chris.thompson@sydney.edu.au>2022-10-31 12:38:37 +0300
committerGitHub <noreply@github.com>2022-10-31 12:38:37 +0300
commit45cd8bf175327a1471b39d4232da3fc57af70dcb (patch)
treee845857a8b7d22842c301ee7acc37a1612740247
parent35ca9fc2aa3c88ee9d4509272aff938ab1be9423 (diff)
parent6e4ca6816ba9b92f79af1d6ba80e1f208f84d78c (diff)
Merge pull request #3062 from haslinghuis/fix-video-system
Fix video system selection for MSP
-rw-r--r--src/js/tabs/osd.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js
index 921ad3b3..e0f5c8a7 100644
--- a/src/js/tabs/osd.js
+++ b/src/js/tabs/osd.js
@@ -2217,6 +2217,7 @@ OSD.msp = {
d.state.isMax7456FontDeviceDetected = bit_check(d.flags, 5) || (d.state.haveMax7456FontDeviceConfigured && semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_43));
d.state.haveOsdFeature = bit_check(d.flags, 0) || (d.flags === 1 && semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_34));
d.state.isOsdSlave = bit_check(d.flags, 1) && semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_34);
+ d.state.isMspDevice = bit_check(d.flags, 6) && semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_45);
d.displayItems = [];
d.statItems = [];
@@ -2906,7 +2907,7 @@ osd.initialize = function(callback) {
}
}
- if (!OSD.data.state.haveMax7456Configured) {
+ if (!(OSD.data.state.haveMax7456Configured || OSD.data.state.isMspDevice)) {
$('.requires-max7456').hide();
}