Propagate gas and setpoint from previous point

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2013-12-07 16:25:41 +01:00 committed by Dirk Hohndel
parent 70a9c280f4
commit 90634b3814

View file

@ -1194,6 +1194,9 @@ int DivePlannerPointsModel::addStop(int milimeters, int seconds, int o2, int he,
struct divedatapoint& t = divepoints.last();
milimeters = t.depth;
seconds = t.time + 600; // 10 minutes.
o2 = t.o2;
he = t.he;
ccpoint = t.po2;
} else if (seconds == 0 && milimeters == 0 && row == 0) {
milimeters = M_OR_FT(5, 15); // 5m / 15ft
seconds = 600; // 10 min