Instead of a "Cylinder for planning" use a default cylinder

Right now hardcoded to AL80. This way in the future we'll have a volume of
gas that's available. And this makes much more sense then a random string
in the description field.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-13 21:44:18 +09:00
parent 25e432e1d1
commit aa76d35923
3 changed files with 11 additions and 4 deletions

View file

@ -1138,7 +1138,7 @@ bool DivePlannerPointsModel::addGas(int o2, int he)
for (int i = 0; i < MAX_CYLINDERS; i++) {
if (cylinder_nodata(cyl)) {
cyl->type.description = strdup("Cylinder for planning");
fill_default_cylinder(cyl);
cyl->gasmix.o2.permille = o2;
cyl->gasmix.he.permille = he;
CylindersModel::instance()->setDive(stagingDive);