diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-10-19 07:07:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-19 07:07:07 -0700 |
commit | 5f44fdd9cf6fba073837cbc1d89c6ed3ea28dd76 (patch) | |
tree | ccf7ecf769b5b3240fa313233eff78c0f52c7881 /load-git.c | |
parent | 839bcaaf70b763590509031208b6786288910bc3 (diff) | |
download | subsurface-5f44fdd9cf6fba073837cbc1d89c6ed3ea28dd76.tar.gz |
Make planner work again for CCR dives
The latest CCR patches had rendered the planner not usable for CCR dives.
This patch corrects this (and reenables the CCR set point column for
segments). The problem was that a new member setpoint of struct divepoint
had been introduced, but there was already po2 which had the same meaning.
This patch merges the two and renames them setpoint to prevent future
confusion.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'load-git.c')
-rw-r--r-- | load-git.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/load-git.c b/load-git.c index 16aa1958f..f65126abf 100644 --- a/load-git.c +++ b/load-git.c @@ -379,7 +379,7 @@ static void parse_sample_keyvalue(void *_sample, const char *key, const char *va } if (!strcmp(key, "po2")) { pressure_t p = get_pressure(value); - sample->po2.mbar = p.mbar; + sample->setpoint.mbar = p.mbar; return; } if (!strcmp(key, "heartbeat")) { |