mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
When libdivecomputer reports a DECOSTOP or DEEPSTOP, set ndl to 0
Without this deco could be mistaken as safety stop (in the case where between two samples we go from a positive ndl to suddenly having a stop - so we never reach ndl of 0) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fd983a0992
commit
2287dc87cf
1 changed files with 1 additions and 0 deletions
|
@ -270,6 +270,7 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata)
|
|||
value.deco.type == DC_DECO_DEEPSTOP) {
|
||||
stopdepth = value.deco.depth * 1000.0 + 0.5;
|
||||
stoptime = value.deco.time;
|
||||
ndl = 0;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue