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 <marc@marcarndt.com>
This commit is contained in:
Marc Arndt 2017-08-15 15:14:51 +02:00 committed by Dirk Hohndel
parent aed5b7d267
commit ac7e60b456

View file

@ -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]) {