diff --git a/core/dive.c b/core/dive.c index ffbd16673..f6ada7534 100644 --- a/core/dive.c +++ b/core/dive.c @@ -1240,12 +1240,12 @@ static void fixup_dive_dc(struct dive *dive, struct divecomputer *dc) /* Fix up gas switch events */ fixup_dc_gasswitch(dive, dc); - /* Fix up cylinder pressures based on DC info */ - fixup_dive_pressures(dive, dc); - /* Fix up cylinder ids in pressure sensors */ fixup_dc_sample_sensors(dc, dive->cylinders.nr); + /* Fix up cylinder pressures based on DC info */ + fixup_dive_pressures(dive, dc); + fixup_dc_events(dc); /* Fixup CCR / PSCR dives with o2sensor values, but without no_o2sensors */