diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-05 23:23:20 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-07-18 05:50:22 -0700 |
commit | 39ede7e9e85e92cfd5b93e32237c6899e595fcfa (patch) | |
tree | 90bd7bc5c111582726545ec4226611c219bf2afc /core/gaspressures.c | |
parent | 68147c42255598992f2be23e53c9bbcf76e65b91 (diff) | |
download | subsurface-39ede7e9e85e92cfd5b93e32237c6899e595fcfa.tar.gz |
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>
Diffstat (limited to 'core/gaspressures.c')
-rw-r--r-- | core/gaspressures.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/gaspressures.c b/core/gaspressures.c index 573e50475..bb55ecb88 100644 --- a/core/gaspressures.c +++ b/core/gaspressures.c @@ -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; } |