diff --git a/locales/en/messages.json b/locales/en/messages.json index e9baa1aa50..6da20315ed 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -6276,6 +6276,10 @@ "message": "Altitude", "description": "Text of the altitude alarm" }, + "osdTimerAlarmOptionLinkQuality": { + "message": "Link Quality", + "description": "Text of the link quality alarm" + }, "osdWarningTextArmingDisabled": { "message": "Arming disabled", "description": "One of the warnings that can be selected to be shown in the OSD" diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index bddd915998..c665839e1b 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -2230,6 +2230,10 @@ OSD.msp = { result.push8(OSD.data.parameters.cameraFrameWidth); result.push8(OSD.data.parameters.cameraFrameHeight); } + + if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) { + result.push16(OSD.data.alarms.link_quality.value); + } } return result; }, @@ -2442,6 +2446,10 @@ OSD.msp = { d.parameters.cameraFrameHeight = view.readU8(); } + if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) { + d.alarms['link_quality'] = { display_name: i18n.getMessage('osdTimerAlarmOptionLinkQuality'), value: view.readU16() }; + } + this.processOsdElements(d, itemsPositionsRead); OSD.updateDisplaySize();