d/ohmd: Use XRT_FREQUENCY_UNSPECIFIED

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2329>
This commit is contained in:
gamingdoom 2024-09-23 23:34:18 +00:00
parent 62900fade1
commit 90b36b16fd

View file

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