@@ -1881,8 +1881,10 @@ OSD.msp = {
18811881
18821882 d . state = { } ;
18831883 d . state . haveSomeOsd = ( d . flags != 0 )
1884- d . state . haveMax7456Video = bit_check ( d . flags , 4 ) || ( d . flags == 1 && semver . lt ( CONFIG . apiVersion , "1.34.0" ) ) ;
1885- d . state . isMax7456Detected = bit_check ( d . flags , 5 ) || ( d . state . haveMax7456Video && semver . lt ( CONFIG . apiVersion , API_VERSION_1_43 ) ) ;
1884+ d . state . haveMax7456Configured = bit_check ( d . flags , 4 ) || ( d . flags == 1 && semver . lt ( CONFIG . apiVersion , "1.34.0" ) ) ;
1885+ d . state . haveFrSkyOSDConfigured = semver . gte ( CONFIG . apiVersion , API_VERSION_1_43 ) && bit_check ( d . flags , 3 ) ;
1886+ d . state . haveMax7456FontDeviceConfigured = d . state . haveMax7456Configured || d . state . haveFrSkyOSDConfigured ;
1887+ d . state . isMax7456FontDeviceDetected = bit_check ( d . flags , 5 ) || ( d . state . haveMax7456FontDeviceConfigured && semver . lt ( CONFIG . apiVersion , API_VERSION_1_43 ) ) ;
18861888 d . state . haveOsdFeature = bit_check ( d . flags , 0 ) || ( d . flags == 1 && semver . lt ( CONFIG . apiVersion , "1.34.0" ) ) ;
18871889 d . state . isOsdSlave = bit_check ( d . flags , 1 ) && semver . gte ( CONFIG . apiVersion , "1.34.0" ) ;
18881890
@@ -2258,7 +2260,7 @@ TABS.osd.initialize = function (callback) {
22582260
22592261 OSD . msp . decode ( info ) ;
22602262
2261- if ( ! OSD . data . state . haveMax7456Video || ! OSD . data . state . isMax7456Detected ) {
2263+ if ( OSD . data . state . haveMax7456FontDeviceConfigured && ! OSD . data . state . isMax7456FontDeviceDetected ) {
22622264 $ ( '.noOsdChipDetect' ) . show ( ) ;
22632265 }
22642266
@@ -2495,12 +2497,12 @@ TABS.osd.initialize = function (callback) {
24952497 }
24962498 }
24972499
2498- if ( ! OSD . data . state . haveMax7456Video ) {
2500+ if ( ! OSD . data . state . haveMax7456Configured ) {
24992501 $ ( '.requires-max7456' ) . hide ( ) ;
25002502 }
25012503
2502- if ( ! OSD . data . state . haveMax7456Video || ! OSD . data . state . isMax7456Detected ) {
2503- $ ( '.requires-detected- max7456' ) . addClass ( 'disabled' ) ;
2504+ if ( ! OSD . data . state . isMax7456FontDeviceDetected || ! OSD . data . state . haveMax7456FontDeviceConfigured ) {
2505+ $ ( '.requires-max7456-font-device-detected ' ) . addClass ( 'disabled' ) ;
25042506 }
25052507
25062508 if ( ! OSD . data . state . haveOsdFeature ) {
0 commit comments