diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-05-08 22:13:55 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-08 14:58:04 -0700 |
commit | 08df5e7e8756a877d6d224094595c9f7cb0c9b1e (patch) | |
tree | a7d06d026947f31d4b1f164e8f8b0772d9df0cca /profile.c | |
parent | 96f707abfe489df7f52c896edbc9dff6789c6c6c (diff) | |
download | subsurface-08df5e7e8756a877d6d224094595c9f7cb0c9b1e.tar.gz |
Use enum name instead of its int value.
SAMPLE_EVENT_GASCHANGE2 is the libdivecomputer name of the event.
Compare with that instead of its int value.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -602,10 +602,10 @@ int get_cylinder_index(struct dive *dive, struct event *ev) distance = delta_o2 * delta_o2; /* Check the event type to figure out if we should care about the he part. - * 11 is SAMPLE_EVENT_GASCHANGE, aka without he - * 25 is SAMPLE_EVENT_GASCHANGE2, aka with he + * SAMPLE_EVENT_GASCHANGE, aka without he + * SAMPLE_EVENT_GASCHANGE2, aka with he */ - if (ev->type == 25) + if (ev->type == SAMPLE_EVENT_GASCHANGE2) distance += delta_he * delta_he; if (distance >= score) continue; |