st/prober: Do not autoprobe if we have a HMD

This commit is contained in:
Jakob Bornecrantz 2019-11-01 15:16:22 +00:00 committed by Jakob Bornecrantz
parent 9183f53c5f
commit 9eedb05f1b

View file

@ -591,6 +591,15 @@ select_device(struct xrt_prober *xp,
free(dev_list);
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 =
p->auto_probers[i]->lelo_dallas_autoprobe(
p->auto_probers[i], xp);