mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
aed5b7d267
commit
ac7e60b456
1 changed files with 4 additions and 0 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue