1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 06:15:13 +03:00

Fixed length check.

This commit is contained in:
Michael Keller 2016-11-30 13:25:23 +13:00 committed by GitHub
parent e2d40d7830
commit 303c55d1dd

View file

@ -595,8 +595,8 @@ TABS.osd.initialize = function (callback) {
MSP.promise(MSPCodes.MSP_OSD_CONFIG)
.then(function(info) {
OSD.chooseFields();
// fc responsed with only 1 field: osd unsupported
if (info.length == 1) {
// fc responsed with short message: osd unsupported
if (info.length < 4) {
$('.unsupported').fadeIn();
return;
}