Skip to content

Commit

Permalink
Merge pull request #2295 from iNavFlight/MrD_Fix-distance-previews
Browse files Browse the repository at this point in the history
Fix decimal in flight remaining, home, and trip distances
  • Loading branch information
MrD-RC authored Jan 4, 2025
2 parents 56d80dc + 47c747f commit 95268b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tabs/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,13 +498,15 @@ function osdDecimalsTripDistancePreview() {
}

function osdDecimalsDistancePreview(prependedSymbol) {
var s = '11.5';
var s = '24.9';
if (Settings.getInputValue('osd_decimals_distance') == 4) {
s+= '3';
} if (Settings.getInputValue('osd_decimals_distance') == 5) {
s = '1' + s + '7';
s = '1' + s + '6';
}

s = FONT.embed_dot(s);

switch (OSD.data.preferences.units) {
case 0: // Imperial
case 3: // UK
Expand Down

0 comments on commit 95268b1

Please sign in to comment.