From 60f4d69592c440ab7bb67a04f4c07fc7279d2c20 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 10 May 2016 22:46:58 -0700 Subject: 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 --- altoslib/AltosPyro.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'altoslib/AltosPyro.java') 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) { -- cgit v1.2.3