summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index 925d50cfb..0962f9ca8 100644
--- a/profile.c
+++ b/profile.c
@@ -1644,7 +1644,8 @@ static struct plot_info *create_plot_info(struct dive *dive, struct divecomputer
entry->in_deco = in_deco;
entry->cns = cns;
entry->po2 = po2;
- entry->cylinderindex = sample->cylinderindex;
+ /* FIXME! sensor index -> cylinder index translation! */
+ entry->cylinderindex = sample->sensor;
SENSOR_PRESSURE(entry) = sample->cylinderpressure.mbar;
entry->temperature = sample->temperature.mkelvin;