Suunto EON Steel: fix the event begin/end flag
This fixes a bug where the begin/end marker was mistakenly added as the value instead of as flag. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2b57b1181d
commit
6352b90a34
@ -686,7 +686,7 @@ static void sample_event_state_value(const struct type_desc *desc, struct sample
|
|||||||
if (sample.event.type == SAMPLE_EVENT_NONE)
|
if (sample.event.type == SAMPLE_EVENT_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sample.event.value = value ? SAMPLE_FLAGS_BEGIN : SAMPLE_FLAGS_END;
|
sample.event.flags = value ? SAMPLE_FLAGS_BEGIN : SAMPLE_FLAGS_END;
|
||||||
if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata);
|
if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -708,7 +708,7 @@ static void sample_event_notify_value(const struct type_desc *desc, struct sampl
|
|||||||
if (sample.event.type == SAMPLE_EVENT_NONE)
|
if (sample.event.type == SAMPLE_EVENT_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sample.event.value = value ? SAMPLE_FLAGS_BEGIN : SAMPLE_FLAGS_END;
|
sample.event.flags = value ? SAMPLE_FLAGS_BEGIN : SAMPLE_FLAGS_END;
|
||||||
if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata);
|
if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -731,7 +731,7 @@ static void sample_event_warning_value(const struct type_desc *desc, struct samp
|
|||||||
if (sample.event.type == SAMPLE_EVENT_NONE)
|
if (sample.event.type == SAMPLE_EVENT_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sample.event.value = value ? SAMPLE_FLAGS_BEGIN : SAMPLE_FLAGS_END;
|
sample.event.flags = value ? SAMPLE_FLAGS_BEGIN : SAMPLE_FLAGS_END;
|
||||||
if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata);
|
if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -754,7 +754,7 @@ static void sample_event_alarm_value(const struct type_desc *desc, struct sample
|
|||||||
if (sample.event.type == SAMPLE_EVENT_NONE)
|
if (sample.event.type == SAMPLE_EVENT_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sample.event.value = value ? SAMPLE_FLAGS_BEGIN : SAMPLE_FLAGS_END;
|
sample.event.flags = value ? SAMPLE_FLAGS_BEGIN : SAMPLE_FLAGS_END;
|
||||||
if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata);
|
if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user