Revert "d/survive: ajust timestamp from button event"

This reverts commit b396c200d0.

The issue has been fixed in libsurvive [1]

[1]: https://github.com/cntools/libsurvive/pull/250
This commit is contained in:
Simon Zeni 2021-12-17 13:40:53 -05:00
parent a19f13171b
commit 4e4e6708bc

View file

@ -615,9 +615,8 @@ _calculate_squeeze_value(struct survive_device *survive)
static void
_process_button_event(struct survive_device *survive, const struct SurviveSimpleButtonEvent *e)
{
// Survive sends button event time relative to the start of the recording
timepoint_ns ts = os_monotonic_get_ns() - time_s_to_ns(e->time);
timepoint_ns ts = survive_timecode_to_monotonic(e->time);
;
if (e->event_type == SURVIVE_INPUT_EVENT_AXIS_CHANGED) {
for (int i = 0; i < e->axis_count; i++) {