mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
d/vive: Actually Use defined values for default haptic frequency and min haptic duration
This commit is contained in:
parent
270a4143c7
commit
0dcde4a597
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue