mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-19 21:28:50 +00:00
d/ohmd: Make env variables consistent with driver name.
This commit is contained in:
parent
2dbb6a6bb8
commit
e0b2c4ad2e
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
// Should we permit finite differencing to compute angular velocities when not
|
// Should we permit finite differencing to compute angular velocities when not
|
||||||
// directly retrieved?
|
// directly retrieved?
|
||||||
DEBUG_GET_ONCE_BOOL_OPTION(oh_finite_diff, "OH_ALLOW_FINITE_DIFF", true)
|
DEBUG_GET_ONCE_BOOL_OPTION(ohmd_finite_diff, "OHMD_ALLOW_FINITE_DIFF", true)
|
||||||
|
|
||||||
// Define this if you have the appropriately hacked-up OpenHMD version.
|
// Define this if you have the appropriately hacked-up OpenHMD version.
|
||||||
#undef OHMD_HAVE_ANG_VEL
|
#undef OHMD_HAVE_ANG_VEL
|
||||||
|
@ -533,7 +533,8 @@ oh_device_create(ohmd_context *ctx,
|
||||||
ohd->dev = dev;
|
ohd->dev = dev;
|
||||||
ohd->print_spew = print_spew;
|
ohd->print_spew = print_spew;
|
||||||
ohd->print_debug = print_debug;
|
ohd->print_debug = print_debug;
|
||||||
ohd->enable_finite_difference = debug_get_bool_option_oh_finite_diff();
|
ohd->enable_finite_difference =
|
||||||
|
debug_get_bool_option_ohmd_finite_diff();
|
||||||
|
|
||||||
snprintf(ohd->base.str, XRT_DEVICE_NAME_LEN, "%s (OpenHMD)", prod);
|
snprintf(ohd->base.str, XRT_DEVICE_NAME_LEN, "%s (OpenHMD)", prod);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
DEBUG_GET_ONCE_BOOL_OPTION(oh_spew, "OH_PRINT_SPEW", false)
|
DEBUG_GET_ONCE_BOOL_OPTION(oh_spew, "OH_PRINT_SPEW", false)
|
||||||
DEBUG_GET_ONCE_BOOL_OPTION(oh_debug, "OH_PRINT_DEBUG", false)
|
DEBUG_GET_ONCE_BOOL_OPTION(oh_debug, "OH_PRINT_DEBUG", false)
|
||||||
DEBUG_GET_ONCE_BOOL_OPTION(oh_external, "OH_EXTERNAL_DRIVER", false)
|
DEBUG_GET_ONCE_BOOL_OPTION(ohmd_external, "OHMD_EXTERNAL_DRIVER", false)
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @implements xrt_auto_prober
|
* @implements xrt_auto_prober
|
||||||
|
@ -100,9 +100,8 @@ oh_prober_autoprobe(struct xrt_auto_prober *xap,
|
||||||
|
|
||||||
prod = ohmd_list_gets(ohp->ctx, i, OHMD_PRODUCT);
|
prod = ohmd_list_gets(ohp->ctx, i, OHMD_PRODUCT);
|
||||||
if (strcmp(prod, "External Device") == 0 &&
|
if (strcmp(prod, "External Device") == 0 &&
|
||||||
!debug_get_bool_option_oh_external()) {
|
!debug_get_bool_option_ohmd_external()) {
|
||||||
OH_DEBUG(
|
U_LOG_D(
|
||||||
ohp,
|
|
||||||
"Rejecting device idx %i, is a External device.",
|
"Rejecting device idx %i, is a External device.",
|
||||||
i);
|
i);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue