projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Not all products have pins to control flash loader
[fw/altos]
/
altoslib
/
AltosHeight.java
diff --git
a/altoslib/AltosHeight.java
b/altoslib/AltosHeight.java
index e0fef5f6023f37b1933be1754e872eebbdbe6a55..96f5722bde80bcca8b3a33d32b3d32b345d2acd4 100644
(file)
--- a/
altoslib/AltosHeight.java
+++ b/
altoslib/AltosHeight.java
@@
-25,6
+25,13
@@
public class AltosHeight extends AltosUnits {
return v;
}
return v;
}
+ public double parse(String s) throws NumberFormatException {
+ double v = Double.parseDouble(s);
+ if (AltosConvert.imperial_units)
+ v = AltosConvert.feet_to_meters(v);
+ return v;
+ }
+
public String show_units() {
if (AltosConvert.imperial_units)
return "ft";
public String show_units() {
if (AltosConvert.imperial_units)
return "ft";
@@
-37,7
+44,7
@@
public class AltosHeight extends AltosUnits {
return "meters";
}
return "meters";
}
- int show_fraction(int width) {
+
public
int show_fraction(int width) {
return width / 9;
}
}
\ No newline at end of file
return width / 9;
}
}
\ No newline at end of file