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

Willem Ferguson willemferguson at zoology.up.ac.za
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 
temperature
values from a dive log to zero. One of the motivations is that a zero 
setpoint
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 
[fill_o2_values()
in profile.c] is changed to apply to the present situation.

Signed-off-by: willem ferguson <willemferguson at zoology.up.ac.za>

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,
willem

-------------- 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: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141031/c9167c09/attachment.patch>


More information about the subsurface mailing list