From 407461fd4fd99d5e8b3ce41fede2350c4f0e3196 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 1 Sep 2021 21:53:08 +0100 Subject: [PATCH] d/vive: Silence warnings from when the camera is running --- src/xrt/drivers/vive/vive_device.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/xrt/drivers/vive/vive_device.c b/src/xrt/drivers/vive/vive_device.c index 6453f509c..75028d018 100644 --- a/src/xrt/drivers/vive/vive_device.c +++ b/src/xrt/drivers/vive/vive_device.c @@ -496,6 +496,16 @@ _decode_pulse_report(struct vive_device *d, const void *buffer) continue; } + if (sensor_id == 0xfd) { + /* TODO: handle camera sync timestamp */ + continue; + } + + if (sensor_id == 0xfb) { + /* TODO: Only turns on when the camera is running but not every frame. */ + continue; + } + if (sensor_id > 31) { VIVE_ERROR(d, "Unexpected sensor id: %04x\n", sensor_id); return;