diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-08-31 23:39:43 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-31 15:18:40 -0700 |
commit | e32896c2bc85a11c2eacc35c0267c2fa90d73b59 (patch) | |
tree | ca2fe52426f10e38311c9f083a1458d8fd3b213a /divelist.c | |
parent | bd8126a709f81631f949c374f4236861b519ea48 (diff) | |
download | subsurface-e32896c2bc85a11c2eacc35c0267c2fa90d73b59.tar.gz |
Introduce double depth_to_bar()
as it leads to significant cleanup.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c index d9a3e2a7b..3cbff84ef 100644 --- a/divelist.c +++ b/divelist.c @@ -323,7 +323,7 @@ static void add_dive_to_deco(struct dive *dive) for (j = t0; j < t1; j++) { int depth = interpolate(psample->depth.mm, sample->depth.mm, j - t0, t1 - t0); - (void)add_segment(depth_to_mbar(depth, dive) / 1000.0, + add_segment(depth_to_bar(depth, dive), &dive->cylinder[sample->sensor].gasmix, 1, sample->setpoint.mbar, dive, dive->sac); } } |