diff options
author | Keith Packard <keithp@keithp.com> | 2016-05-10 22:46:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-05-11 23:22:15 -0700 |
commit | 60f4d69592c440ab7bb67a04f4c07fc7279d2c20 (patch) | |
tree | 8edfca4a59b5d15d251607075453aeab1a9f376f /altoslib/AltosPyro.java | |
parent | 6a6da23335e6e5864387c7a22946f80f51056a4f (diff) |
altoslib: Switch distance from m/ft to km/miles for large values
This adds lots of infrastructure to deal with making the unit used
depend on the value itself, and then uses it only for distances.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosPyro.java')
-rw-r--r-- | altoslib/AltosPyro.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosPyro.java b/altoslib/AltosPyro.java index 28e65bc2..3afd03e0 100644 --- a/altoslib/AltosPyro.java +++ b/altoslib/AltosPyro.java @@ -138,7 +138,7 @@ public class AltosPyro { units = pyro_to_units.get(flag); if (units == null) return name; - return String.format ("%s (%s)", name, units.show_units()); + return String.format ("%s (%s)", name, units.parse_units()); } public static AltosUnits pyro_to_units(int flag) { |