diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-23 17:52:45 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-23 18:01:30 +0300 |
commit | 2b4fa480ae57766889c5a20ff1cb59427469d401 (patch) | |
tree | 793eb792fce3dfab89851cf2fce7871d7ba9c697 /display.h | |
parent | 2b2b6775de0ebdd086bb7cd4afc5ac461100524d (diff) | |
download | subsurface-2b4fa480ae57766889c5a20ff1cb59427469d401.tar.gz |
Handle 'gas change' events correctly
Dirk wrote the multi-cylinder support assuming that the dive computer
always gives the selected cylinder index in the sample data - that's
what his Uemis does, and it makes sense for any dive computer that
supports multiple pressure transmitters.
However, the other case is a dive computer where the pressure samples
are all from cylinder 0, and any other cylinder will have the starting
and ending pressure set by hand. And the gas change events show when
the cylinder change happened.
So this creates a "turn gas change events into pressure sample fixups"
phase just before we actually analyze the pressures. That way the
pressure analysis can alway sdo the right thing, regardless of how the
data was originally stores in the dive.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'display.h')
0 files changed, 0 insertions, 0 deletions