From f0303802dde0f5e18018f71253b0aa363dbb3402 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 7 Aug 2017 20:40:57 +0200 Subject: DLF: Import setpoint changes. Signed-off-by: Anton Lundin --- core/parse-xml.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'core/parse-xml.c') 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"); -- cgit v1.2.3-70-g09d2