From b1ed04a7f462d88b28b1abab881a0e1a8acc212a Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Wed, 6 Jul 2016 22:40:28 +1000 Subject: Have divedatapoint store cylinder id instead of gasmix Determining the correct cylinder index from a known gas mix can be complicated, but it is trivial to look up the gasmix from the cylinder_t structure. It makes sense to remember which cylinder is being used. This simplifies handling changing a cylinder's gas mix, either directly by the user, or indirectly in the planner. It also permits tracking of multiple cylinders of the same mix, e.g. independent twins / sidemount. Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- core/qthelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/qthelper.h') diff --git a/core/qthelper.h b/core/qthelper.h index 3a5ef60e4..95bdf4dbd 100644 --- a/core/qthelper.h +++ b/core/qthelper.h @@ -18,7 +18,7 @@ bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_te extern "C" const char *printGPSCoords(int lat, int lon); QList getDivesInTrip(dive_trip_t *trip); QString get_gas_string(struct gasmix gas); -QString get_divepoint_gas_string(const divedatapoint& dp); +QString get_divepoint_gas_string(struct dive *d, const divedatapoint& dp); void read_hashes(); void write_hashes(); void updateHash(struct picture *picture); -- cgit v1.2.3-70-g09d2