mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 22:35:17 +03:00
Fixed length check.
This commit is contained in:
parent
e2d40d7830
commit
303c55d1dd
1 changed files with 2 additions and 2 deletions
|
@ -595,8 +595,8 @@ TABS.osd.initialize = function (callback) {
|
||||||
MSP.promise(MSPCodes.MSP_OSD_CONFIG)
|
MSP.promise(MSPCodes.MSP_OSD_CONFIG)
|
||||||
.then(function(info) {
|
.then(function(info) {
|
||||||
OSD.chooseFields();
|
OSD.chooseFields();
|
||||||
// fc responsed with only 1 field: osd unsupported
|
// fc responsed with short message: osd unsupported
|
||||||
if (info.length == 1) {
|
if (info.length < 4) {
|
||||||
$('.unsupported').fadeIn();
|
$('.unsupported').fadeIn();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue