diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-09-18 09:06:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-09-18 11:59:13 -0500 |
commit | b75aee33fec6c624c0746c10006fa7098d24c582 (patch) | |
tree | 5981d244f4e73b3860b92eaa6ddbe57eadddf5f6 /dive.c | |
parent | 608209fff23417f77526bef836bb505bc05c7eff (diff) | |
download | subsurface-b75aee33fec6c624c0746c10006fa7098d24c582.tar.gz |
Use the right event type
11 is SAMPLE_EVENT_GASCHANGE, and thats the one that doesn't contain any
He-part. The type where He and O2 is packed togeather is 25,
SAMPLE_EVENT_GASCHANGE2.
Left to implement is to figure out the type of the event when we read
the xml, so we can create the right type there.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1074,7 +1074,7 @@ static void add_initial_gaschange(struct dive *dive, struct divecomputer *dc) he = (he + 5) / 10; value = o2 + (he << 16); - add_event(dc, 0, 11, 0, value, "gaschange"); + add_event(dc, 0, 25, 0, value, "gaschange"); /* SAMPLE_EVENT_GASCHANGE2 */ } static void dc_cylinder_renumber(struct dive *dive, struct divecomputer *dc, int mapping[]) |