diff options
author | Jan Schubert <Jan.Schubert@GMX.li> | 2013-02-02 18:40:29 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-03 07:06:38 +1100 |
commit | 59cfa5c427da640ce15fe60c0d271532b26b14e4 (patch) | |
tree | f97a4f38f897b1515b1375c16d763318bb10a155 /planner.c | |
parent | 057253c4eb4b3daf3bd18dc91df29ed11d35c275 (diff) | |
download | subsurface-59cfa5c427da640ce15fe60c0d271532b26b14e4.tar.gz |
Fixing SP handling in planner, adding event
Fixing the SP change event and introducing a bailout scenario.
I decided not to use a event showing SP=0.0 nor using a gaschange event as
is in fact there is no gas change related to bailing out itself. If there
is also a gaschange for the event it will be displayed anyway.
Signed-off-by: Jan Schubert <Jan.Schubert@GMX.li>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -218,9 +218,10 @@ struct dive *create_dive_from_plan(struct diveplan *diveplan) he = oldhe; } + /* Check for SetPoint change */ if (oldpo2 != po2) { if (lasttime) - add_event(dc, lasttime, 20, 0, po2/1000, "SP change"); // SAMPLE_EVENT_PO2 + add_event(dc, lasttime, 20, 0, po2, "SP change"); // SAMPLE_EVENT_PO2 oldpo2 = po2; } |