PATCH: Remove code that zeroes oxygen-related data and temperatures

Willem Ferguson willemferguson at
Fri Oct 31 12:27:59 PDT 2014

Remove code that zeroes out duplicate oxygen sensor and temperature values

Remove the code that changes all duplicate oxygen sensor, setpoint and 
values from a dive log to zero. One of the motivations is that a zero 
value indicates an Open Circuit dive segment, not Closed Circuit 
Rebreather. The
code in dive.c is removed and the comments for the corresponding 
restoration code that restores
the last known values into sensor or temperature with zero values is 
in profile.c] is changed to apply to the present situation.

Signed-off-by: willem ferguson <willemferguson at>

I did some experimenting with the code that restores zeroed oxygen 
values to last-known values.
If I remove the restoration code, then the o2 profile for the Poseidon 
data goes wonky: o2 values are
not reported with every sample, so the restoration code is still 
required. Same applies to
temperature data.
Kind regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Remove-code-that-zeroes-out-duplicate-oxygen-sensor-.patch
Type: text/x-diff
Size: 6080 bytes
Desc: not available
URL: <>

More information about the subsurface mailing list