d/vive: Actually Use defined values for default haptic frequency and min haptic duration

This commit is contained in:
Christoph Haag 2020-10-13 19:29:51 +02:00
parent 270a4143c7
commit 0dcde4a597

View file

@ -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;
}