aboutsummaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/parse.c b/parse.c
index f90c16ce1..03cede25d 100644
--- a/parse.c
+++ b/parse.c
@@ -222,11 +222,10 @@ static void depth(char *buffer, void *_depth)
union int_or_float val;
switch (integer_or_float(buffer, &val)) {
- /* Integer values are probably in feet */
+ /* All values are probably in meters */
case INTEGER:
- depth->mm = 304.8 * val.i;
- break;
- /* Float? Probably meters.. */
+ val.fp = val.i;
+ /* fallthrough */
case FLOAT:
depth->mm = val.fp * 1000;
break;