d/vive: Do more tracing during packet handling

This commit is contained in:
Jakob Bornecrantz 2022-11-20 22:18:43 +00:00
parent 60099fdd71
commit b1b63a9397

View file

@ -447,6 +447,8 @@ vive_mainboard_read_one_msg(struct vive_device *d)
return false;
}
DRV_TRACE_IDENT(packet);
switch (buffer[0]) {
case VIVE_MAINBOARD_STATUS_REPORT_ID:
if (ret != sizeof(struct vive_mainboard_status_report)) {
@ -612,6 +614,8 @@ vive_sensors_read_one_msg(struct vive_device *d,
return false;
}
DRV_TRACE_IDENT(packet);
if (buffer[0] == report_id) {
if (!_is_report_size_valid(d, ret, report_size, report_id))
return false;
@ -704,6 +708,8 @@ vive_sensors_read_lighthouse_msg(struct vive_device *d)
return false;
}
DRV_TRACE_IDENT(packet);
int expected; // size;
switch (buffer[0]) {