diff options
author | Anton Lundin <glance@acc.umu.se> | 2017-08-07 20:40:57 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-08-10 09:09:53 -0700 |
commit | f0303802dde0f5e18018f71253b0aa363dbb3402 (patch) | |
tree | 015352d6b7678d75f59351f1421099bb45a5f326 | |
parent | 366ad82a98fa8822b9b5b78342dc43a148ab7780 (diff) | |
download | subsurface-f0303802dde0f5e18018f71253b0aa363dbb3402.tar.gz |
DLF: Import setpoint changes.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
-rw-r--r-- | core/parse-xml.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index 4b2d6a925..9ba9b24ac 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -3589,11 +3589,17 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size) switch (ptr[4]) { case 1: strcpy(cur_event.name, "Setpoint Manual"); - // There is a setpoint value somewhere... + cur_event.value = ptr[6]; + sample_start(); + cur_sample->setpoint.mbar = ptr[6] * 10; + sample_end(); break; case 2: strcpy(cur_event.name, "Setpoint Auto"); - // There is a setpoint value somewhere... + cur_event.value = ptr[6]; + sample_start(); + cur_sample->setpoint.mbar = ptr[6] * 10; + sample_end(); switch (ptr[7]) { case 0: strcat(cur_event.name, " Manual"); |