diff options
author | Willem Ferguson <willemferguson@zoology.up.ac.za> | 2014-06-03 19:21:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-03 17:05:25 -0700 |
commit | eaf6d564874ac838dc4f3cca7a781034ae60ef7f (patch) | |
tree | d214c58bdc33f6dbd058afe715de357dd14d4114 /save-xml.c | |
parent | 1fec6453a2b7b6dcd34901a4e92dd11aae38879c (diff) | |
download | subsurface-eaf6d564874ac838dc4f3cca7a781034ae60ef7f.tar.gz |
CCR code: Change to sample structure
1) All the variables in the sample structures are strongly typed
2) Two additional types were declared in units.h:
o2pressure_t
bearing_t
3) The following variables were added:
diluentpressure
o2setpoint
o2sensor[3]
4) Changes to a number of files were made to chanf
sample->po2 to sample->po2.mbar
bearing to bearring.degrees
Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/save-xml.c b/save-xml.c index 5f61af77f..d48d0ef08 100644 --- a/save-xml.c +++ b/save-xml.c @@ -279,12 +279,12 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl old->cns = sample->cns; } - if (sample->po2 != old->po2) { - put_milli(b, " po2='", sample->po2, " bar'"); + if (sample->po2.mbar != old->po2.mbar) { + put_milli(b, " po2='", sample->po2.mbar, " bar'"); old->po2 = sample->po2; } show_index(b, sample->heartbeat, "heartbeat='", "'"); - show_index(b, sample->bearing, "bearing='", "'"); + show_index(b, sample->bearing.degrees, "bearing='", "'"); put_format(b, " />\n"); } |