Cleanup: introduce function to set pressure values

Instead of assigning the the lvalue of the SENSOR_PRESSURE
macro, introduce a general function to set pressure values.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-07-05 23:23:20 +02:00 committed by Dirk Hohndel
parent 68147c4225
commit 39ede7e9e8
3 changed files with 9 additions and 5 deletions

View file

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