mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
d/ohmd: Use XRT_FREQUENCY_UNSPECIFIED
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2329>
This commit is contained in:
parent
62900fade1
commit
90b36b16fd
|
@ -336,7 +336,7 @@ oh_device_set_output(struct xrt_device *xdev, enum xrt_output_name name, const u
|
|||
float frequency = value->vibration.frequency;
|
||||
|
||||
// A frequency of 0.0f from OpenXR means to let the driver decide.
|
||||
if (frequency == 0.0f) {
|
||||
if (frequency == XRT_FREQUENCY_UNSPECIFIED) {
|
||||
frequency = DEFAULT_HAPTIC_FREQ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue