From 0dcde4a597bca7f9b1b68df90d97d8dd6d60c6e0 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Tue, 13 Oct 2020 19:29:51 +0200 Subject: [PATCH] d/vive: Actually Use defined values for default haptic frequency and min haptic duration --- src/xrt/drivers/vive/vive_controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/drivers/vive/vive_controller.c b/src/xrt/drivers/vive/vive_controller.c index 16f171158..685fc8a4e 100644 --- a/src/xrt/drivers/vive/vive_controller.c +++ b/src/xrt/drivers/vive/vive_controller.c @@ -434,7 +434,7 @@ vive_controller_haptic_pulse(struct vive_controller_device *d, if (value->vibration.duration == XRT_MIN_HAPTIC_DURATION) { VIVE_TRACE(d, "Haptic pulse duration: using %f minimum", MIN_HAPTIC_DURATION); - duration_seconds = 0.1; + duration_seconds = MIN_HAPTIC_DURATION; } else { duration_seconds = time_ns_to_s(value->vibration.duration); } @@ -448,7 +448,7 @@ vive_controller_haptic_pulse(struct vive_controller_device *d, VIVE_TRACE( d, "Haptic pulse frequency unspecified, setting to %fHz", DEFAULT_HAPTIC_FREQ); - frequency = 200; + frequency = DEFAULT_HAPTIC_FREQ; }