From 1071d7a50b8ebe3d3aea910e3494ed3fa00442f9 Mon Sep 17 00:00:00 2001
From: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
Date: Fri, 26 Jun 2020 14:16:12 +0200
Subject: [PATCH] d/vive/controller: Uncomment and improve spew prints.

---
 src/xrt/drivers/vive/vive_controller.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/xrt/drivers/vive/vive_controller.c b/src/xrt/drivers/vive/vive_controller.c
index 525703631..eb41189e6 100644
--- a/src/xrt/drivers/vive/vive_controller.c
+++ b/src/xrt/drivers/vive/vive_controller.c
@@ -563,10 +563,11 @@ vive_controller_handle_imu_sample(struct vive_controller_device *d,
 	    scale * d->imu.gyro_scale.z * gyro[2] - d->imu.gyro_bias.z,
 	};
 
+	VIVE_CONTROLLER_SPEW(d, "ACC  %f %f %f", acceleration.x, acceleration.y,
+	                     acceleration.z);
+	VIVE_CONTROLLER_SPEW(d, "GYRO %f %f %f", angular_velocity.x,
+	                     angular_velocity.y, angular_velocity.z);
 	/*
-	 VIVE_CONTROLLER_SPEW(d, "ACC  %f %f %f", acceleration.x,
-	 acceleration.y, acceleration.z); VIVE_CONTROLLER_SPEW(d, "GYRO %f %f
-	 %f", angular_velocity.x, angular_velocity.y, angular_velocity.z);
 	 */
 
 	if (d->variant == CONTROLLER_VIVE_WAND) {
@@ -693,6 +694,12 @@ vive_controller_decode_watchmanv1(struct vive_controller_device *d,
 
 		// clang-format on
 
+		VIVE_CONTROLLER_SPEW(d,
+		                     "battery %d trigger %d trackpad %d "
+		                     "buttons %d imu %d",
+		                     has_battery, has_trigger, has_trackpad,
+		                     has_buttons, has_imu);
+
 		buf++;
 
 		if (has_battery) {