1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-15 20:35:23 +03:00

Fix video system selection for MSP

This commit is contained in:
Mark Haslinghuis 2022-10-29 06:06:48 +02:00
parent c3a81ca438
commit 6e4ca6816b

View file

@ -2181,6 +2181,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 = [];
@ -2870,7 +2871,7 @@ osd.initialize = function(callback) {
}
}
if (!OSD.data.state.haveMax7456Configured) {
if (!(OSD.data.state.haveMax7456Configured || OSD.data.state.isMspDevice)) {
$('.requires-max7456').hide();
}