Merge pull request #370 from rafl/ignore-unknown-osd-items
Ignore unknown OSD items10.3.x-maintenance
commit
c29f1e285e
|
@ -523,7 +523,7 @@ OSD.msp = {
|
||||||
}
|
}
|
||||||
d.display_items = [];
|
d.display_items = [];
|
||||||
// start at the offset from the other fields
|
// 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;
|
var v = null;
|
||||||
if (semver.gte(CONFIG.flightControllerVersion, "3.0.1")) {
|
if (semver.gte(CONFIG.flightControllerVersion, "3.0.1")) {
|
||||||
v = view.readU16();
|
v = view.readU16();
|
||||||
|
|
Loading…
Reference in New Issue