mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
st/prober: Do not autoprobe if we have a HMD
This commit is contained in:
parent
9183f53c5f
commit
9eedb05f1b
|
@ -591,6 +591,15 @@ select_device(struct xrt_prober *xp,
|
||||||
free(dev_list);
|
free(dev_list);
|
||||||
|
|
||||||
for (int i = 0; i < MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
|
for (int i = 0; i < MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If we have found a HMD stop checking the auto probers. This
|
||||||
|
* is mostly to stop OpenHMD and Monado fighting over devices.
|
||||||
|
*/
|
||||||
|
if (xdevs[0] != NULL) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
struct xrt_device *xdev =
|
struct xrt_device *xdev =
|
||||||
p->auto_probers[i]->lelo_dallas_autoprobe(
|
p->auto_probers[i]->lelo_dallas_autoprobe(
|
||||||
p->auto_probers[i], xp);
|
p->auto_probers[i], xp);
|
||||||
|
|
Loading…
Reference in a new issue