Some gas handling improvements

Add a time linear gas interpolation strategy. Some minor changes.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2014-11-09 14:36:27 +01:00 committed by Dirk Hohndel
parent 5034f76072
commit 84dc8b8962
5 changed files with 38 additions and 25 deletions

4
dive.c
View file

@ -1062,8 +1062,8 @@ unsigned int dc_airtemp(struct divecomputer *dc)
static void fixup_cylinder_use(struct dive *dive) // for CCR dives, store the indices
{ // of the oxygen and diluent cylinders
dive->oxygen_cylinder_index = get_cylinder_use(dive, oxygen);
dive->diluent_cylinder_index = get_cylinder_use(dive, diluent);
dive->oxygen_cylinder_index = get_cylinder_use(dive, OXYGEN);
dive->diluent_cylinder_index = get_cylinder_use(dive, DILUENT);
}
static void fixup_airtemp(struct dive *dive)