Disable the deco events
These deco events have already been converted to a deco sample.
This commit is contained in:
parent
bfd7301945
commit
d021bb98ef
@ -576,28 +576,28 @@ suunto_d9_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t ca
|
|||||||
seconds = data[offset + 1];
|
seconds = data[offset + 1];
|
||||||
switch (type & 0x7F) {
|
switch (type & 0x7F) {
|
||||||
case 0x00: // Voluntary Safety Stop
|
case 0x00: // Voluntary Safety Stop
|
||||||
sample.event.type = SAMPLE_EVENT_SAFETYSTOP_VOLUNTARY;
|
sample.event.type = SAMPLE_EVENT_NONE;
|
||||||
if (type & 0x80)
|
if (type & 0x80)
|
||||||
in_deco &= ~SAFETYSTOP;
|
in_deco &= ~SAFETYSTOP;
|
||||||
else
|
else
|
||||||
in_deco |= SAFETYSTOP;
|
in_deco |= SAFETYSTOP;
|
||||||
break;
|
break;
|
||||||
case 0x01: // Mandatory Safety Stop - odd concept; model as deco stop
|
case 0x01: // Mandatory Safety Stop - odd concept; model as deco stop
|
||||||
sample.event.type = SAMPLE_EVENT_SAFETYSTOP_MANDATORY;
|
sample.event.type = SAMPLE_EVENT_NONE;
|
||||||
if (type & 0x80)
|
if (type & 0x80)
|
||||||
in_deco &= ~DECOSTOP;
|
in_deco &= ~DECOSTOP;
|
||||||
else
|
else
|
||||||
in_deco |= DECOSTOP;
|
in_deco |= DECOSTOP;
|
||||||
break;
|
break;
|
||||||
case 0x02: // Deep Safety Stop
|
case 0x02: // Deep Safety Stop
|
||||||
sample.event.type = SAMPLE_EVENT_DEEPSTOP;
|
sample.event.type = SAMPLE_EVENT_NONE;
|
||||||
if (type & 0x80)
|
if (type & 0x80)
|
||||||
in_deco &= ~DEEPSTOP;
|
in_deco &= ~DEEPSTOP;
|
||||||
else
|
else
|
||||||
in_deco |= DEEPSTOP;
|
in_deco |= DEEPSTOP;
|
||||||
break;
|
break;
|
||||||
case 0x03: // Deco
|
case 0x03: // Deco
|
||||||
sample.event.type = SAMPLE_EVENT_DECOSTOP;
|
sample.event.type = SAMPLE_EVENT_NONE;
|
||||||
if (type & 0x80)
|
if (type & 0x80)
|
||||||
in_deco &= ~DECOSTOP;
|
in_deco &= ~DECOSTOP;
|
||||||
else
|
else
|
||||||
@ -647,14 +647,14 @@ suunto_d9_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t ca
|
|||||||
sample.event.type = SAMPLE_EVENT_TISSUELEVEL;
|
sample.event.type = SAMPLE_EVENT_TISSUELEVEL;
|
||||||
break;
|
break;
|
||||||
case 0x13: // Deep Safety Stop
|
case 0x13: // Deep Safety Stop
|
||||||
sample.event.type = SAMPLE_EVENT_DEEPSTOP;
|
sample.event.type = SAMPLE_EVENT_NONE;
|
||||||
if (type & 0x80)
|
if (type & 0x80)
|
||||||
in_deco &= ~DEEPSTOP;
|
in_deco &= ~DEEPSTOP;
|
||||||
else
|
else
|
||||||
in_deco |= DEEPSTOP;
|
in_deco |= DEEPSTOP;
|
||||||
break;
|
break;
|
||||||
case 0x14: // Mandatory Safety Stop - again, model as deco stop
|
case 0x14: // Mandatory Safety Stop - again, model as deco stop
|
||||||
sample.event.type = SAMPLE_EVENT_SAFETYSTOP_MANDATORY;
|
sample.event.type = SAMPLE_EVENT_NONE;
|
||||||
if (type & 0x80)
|
if (type & 0x80)
|
||||||
in_deco &= ~DECOSTOP;
|
in_deco &= ~DECOSTOP;
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user