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
@ -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…
x
Reference in New Issue
Block a user