Profile: pass index instead of pointer to set_plot_pressure_data

Another plot-pressure-related function whose argument is converted
to an index.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-07-06 12:59:12 +02:00 committed by Dirk Hohndel
parent fe6d3c8c38
commit 2fd4cb5fe1
3 changed files with 9 additions and 15 deletions

View file

@ -442,7 +442,7 @@ void populate_pressure_information(struct dive *dive, struct divecomputer *dc, s
// until we get back to this cylinder.
if (cyl != sensor) {
current = NULL;
set_plot_pressure_data(entry, SENSOR_PR, sensor, 0);
set_plot_pressure_data(pi, i, SENSOR_PR, sensor, 0);
continue;
}