summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/profile.c b/profile.c
index 373ac8eb3..8289f68c9 100644
--- a/profile.c
+++ b/profile.c
@@ -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;