mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
Ignore unknown OSD items
This commit is contained in:
parent
ed35a74746
commit
3271fd70e4
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ OSD.msp = {
|
|||
}
|
||||
d.display_items = [];
|
||||
// start at the offset from the other fields
|
||||
while (view.offset < view.byteLength) {
|
||||
while (view.offset < view.byteLength && d.display_items.length < OSD.constants.DISPLAY_FIELDS.length) {
|
||||
var v = null;
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "3.0.1")) {
|
||||
v = view.readU16();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue