diff options
author | Robert C. Helling <helling@atdotde.de> | 2016-06-14 17:12:57 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-06-14 12:04:36 -0700 |
commit | fc213066f8ee9e129bdace3c042322df6c5cc611 (patch) | |
tree | 9f858148cb1d013a6ca34a937d429ff1505ba2d4 /core/load-git.c | |
parent | 0d986b9cfd400d774a540b80255d9cd53235cb5e (diff) | |
download | subsurface-fc213066f8ee9e129bdace3c042322df6c5cc611.tar.gz |
Only setpoint changes with non-zero SP indicate a CCR dive
There might be some spurious setpoint changes at t=0 without
an actual value (I have no idea where those come from). In
any case, those do not indicate that the dive is a CCR dive.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c index be7fac7d8..9ae479545 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -762,7 +762,7 @@ static void parse_dc_event(char *line, struct membuffer *str, void *_dc) * Better to mark them being CCR on import so no need for special treatments elsewhere on * the code. */ - if (ev && event.time.seconds == 0 && event.type == SAMPLE_EVENT_PO2 && dc->divemode==OC) { + if (ev && event.time.seconds == 0 && event.type == SAMPLE_EVENT_PO2 && event.value && xdc->divemode==OC) { dc->divemode = CCR; } |