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

Improving osd detection warnings

This commit is contained in:
Asizon 2020-03-20 15:57:00 +01:00
parent 94c3dd5d73
commit 05a55c5b42
4 changed files with 14 additions and 4 deletions

View file

@ -2244,6 +2244,10 @@ TABS.osd.initialize = function (callback) {
OSD.msp.decode(info);
if (!OSD.data.state.haveMax7456Video || !OSD.data.state.isMax7456Detected) {
$('.noOsdChipDetect').show();
}
if (OSD.data.state.haveSomeOsd == 0) {
$('.unsupported').fadeIn();
return;
@ -2466,11 +2470,10 @@ TABS.osd.initialize = function (callback) {
if (!OSD.data.state.haveMax7456Video) {
$('.requires-max7456').hide();
$('.requires-detected-max7456').hide();
}
if (!OSD.data.state.haveMax7456Video || !OSD.data.state.isMax7456Detected) {
$('.requires-detected-max7456').hide();
$('.requires-detected-max7456').addClass('disabled');
}
if (!OSD.data.state.haveOsdFeature) {