Commit 63d62cf4 authored by Ryan Pavlik's avatar Ryan Pavlik Committed by Jakob Bornecrantz
Browse files

d/psmv: Fix timestamp parsing (ZCM1)

parent f123c411
......@@ -1263,8 +1263,9 @@ psmv_parse_input_zcm1(struct psmv_device *psmv,
input->buttons |= data->buttons[1] << 16;
input->buttons |= data->buttons[2] << 8;
input->buttons |= data->buttons[3] & 0xf0;
input->timestamp |= data->timestamp_low;
input->timestamp |= data->timestamp_high << 8;
input->timestamp = 0;
input->timestamp |= (uint16_t)data->timestamp_low;
input->timestamp |= ((uint16_t)data->timestamp_high) << 8;
input->trigger_values[0] = data->trigger_f1;
input->trigger_values[1] = data->trigger_f2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment