From b1b63a9397d81fe3139454c18f1ca4f7c3c0cfb5 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 20 Nov 2022 22:18:43 +0000 Subject: [PATCH] d/vive: Do more tracing during packet handling --- src/xrt/drivers/vive/vive_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xrt/drivers/vive/vive_device.c b/src/xrt/drivers/vive/vive_device.c index 12504532e..5949532b6 100644 --- a/src/xrt/drivers/vive/vive_device.c +++ b/src/xrt/drivers/vive/vive_device.c @@ -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]) {