]> git.tdb.fi Git - ext/subsurface.git/blobdiff - uemis.c
Fix profile and average depth for freedives
[ext/subsurface.git] / uemis.c
diff --git a/uemis.c b/uemis.c
index 86b186043486a001b56154b4064e2bdcff4516f7..06ef5b4231c6f85e6474d182b04a5cf7911d8f2b 100644 (file)
--- a/uemis.c
+++ b/uemis.c
@@ -88,7 +88,7 @@ static int pressure_to_depth(uint16_t value)
 
        atm = bar_to_atm(value / 100.0);
        cm = 100 * atm + 0.5;
-       return( (cm > 0) ? 10 * (long)cm : 0);
+       return (cm > 0) ? 10 * (long)cm : 0;
 }
 
 /*
@@ -231,7 +231,7 @@ void uemis_parse_divelog_binary(char *base64, void *datap) {
                sample->cylinderindex = u_sample->active_tank;
                sample->cylinderpressure.mbar= u_sample->tank_pressure * 10;
                uemis_event(dive, sample, u_sample);
-               finish_sample(dive, sample);
+               finish_sample(dive);
                i += 0x25;
                u_sample++;
        }