From ac7e60b456780eac30e067c958b7302cf747b2e7 Mon Sep 17 00:00:00 2001 From: Marc Arndt Date: Tue, 15 Aug 2017 15:14:51 +0200 Subject: Ignore Divesoft Button Press Events Prevent button press events from showing on the profile graph when we import divesoft DLF files. Reported-by: Marc Arndt Signed-off-by: Marc Arndt --- core/parse-xml.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/parse-xml.c b/core/parse-xml.c index 1fbf7f37e..97cd71d5c 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -3628,6 +3628,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size) case 3: /* diver error */ case 4: /* internal error */ case 5: /* device activity log */ + //Event 18 is a button press. Lets ingore that event. + if (ptr[4] == 18) + continue; + event_start(); cur_event.time.seconds = time; switch (ptr[4]) { -- cgit v1.2.3-70-g09d2