From 1034e3a3e2d16e009a22659df49e156c33eb3fb1 Mon Sep 17 00:00:00 2001 From: mikeller Date: Sat, 8 Dec 2018 22:45:16 +1300 Subject: [PATCH] Renamed flight distance according to betaflight/betaflight#7183. --- locales/en/messages.json | 6 +++--- src/js/tabs/osd.js | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index 857ffa10..6fe8aee8 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -3567,8 +3567,8 @@ "osdDescElementLinkQuality": { "message": "Alternative indicator for 'link quality' based on frame loss - use with caution" }, - "osdDescElementTotalDist": { - "message": "Total distance flown during this flight." + "osdDescElementFlightDist": { + "message": "Distance flown during this flight." }, "osdDescElementTimer1" : { "message": "Shows the value of timer 1" @@ -3658,7 +3658,7 @@ "osdDescStatMinLinkQuality": { "message": "Minimum of the alternative indicator for 'link quality' based on frame loss" }, - "osdDescStatTotalDistance": { + "osdDescStatFlightDistance": { "message": "Total distance travelled during the flight" }, diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index 3a5ace9d..669ba06b 100755 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -836,9 +836,9 @@ OSD.constants = { positionable: true, preview: '8' }, - TOTAL_DIST: { - name: 'TOTAL_DISTANCE', - desc: 'osdDescElementTotalDist', + FLIGHT_DIST: { + name: 'FLIGHT_DISTANCE', + desc: 'osdDescElementFlightDist', default_position: -1, draw_order: 360, positionable: true, @@ -935,9 +935,9 @@ OSD.constants = { name: 'MIN_LINK_QUALITY', desc: 'osdDescStatMinLinkQuality' }, - TOTAL_DISTANCE: { - name: 'TOTAL_DISTANCE', - desc: 'osdDescStatTotalDistance' + FLIGHT_DISTANCE: { + name: 'FLIGHT_DISTANCE', + desc: 'osdDescStatFlightDistance' } }, ALL_WARNINGS: { @@ -1090,7 +1090,7 @@ OSD.chooseFields = function () { F.LOG_STATUS, F.FLIP_ARROW, F.LINK_QUALITY, - F.TOTAL_DIST, + F.FLIGHT_DIST, ]); } } @@ -1178,7 +1178,7 @@ OSD.chooseFields = function () { F.MAX_ESC_TEMP, F.MAX_ESC_RPM, F.MIN_LINK_QUALITY, - F.TOTAL_DISTANCE + F.FLIGHT_DISTANCE ]); } }