mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/wmr: Fix typo
This commit is contained in:
parent
739f869517
commit
4ef5b65487
|
@ -128,7 +128,7 @@ hololens_sensors_read_packets(struct wmr_hmd *wh)
|
||||||
unsigned char buffer[WMR_FEATURE_BUFFER_SIZE];
|
unsigned char buffer[WMR_FEATURE_BUFFER_SIZE];
|
||||||
|
|
||||||
// Block for 100ms
|
// Block for 100ms
|
||||||
int size = os_hid_read(wh->hid_hololens_senors_dev, buffer, sizeof(buffer), 100);
|
int size = os_hid_read(wh->hid_hololens_sensors_dev, buffer, sizeof(buffer), 100);
|
||||||
|
|
||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
WMR_ERROR(wh, "Error reading from device");
|
WMR_ERROR(wh, "Error reading from device");
|
||||||
|
@ -282,7 +282,7 @@ wmr_run_thread(void *ptr)
|
||||||
static void
|
static void
|
||||||
hololens_sensors_enable_imu(struct wmr_hmd *wh)
|
hololens_sensors_enable_imu(struct wmr_hmd *wh)
|
||||||
{
|
{
|
||||||
int size = os_hid_write(wh->hid_hololens_senors_dev, hololens_sensors_imu_on, sizeof(hololens_sensors_imu_on));
|
int size = os_hid_write(wh->hid_hololens_sensors_dev, hololens_sensors_imu_on, sizeof(hololens_sensors_imu_on));
|
||||||
if (size <= 0) {
|
if (size <= 0) {
|
||||||
WMR_ERROR(wh, "Error writing to device");
|
WMR_ERROR(wh, "Error writing to device");
|
||||||
return;
|
return;
|
||||||
|
@ -428,9 +428,9 @@ wmr_hmd_destroy(struct xrt_device *xdev)
|
||||||
// Destroy the thread object.
|
// Destroy the thread object.
|
||||||
os_thread_helper_destroy(&wh->oth);
|
os_thread_helper_destroy(&wh->oth);
|
||||||
|
|
||||||
if (wh->hid_hololens_senors_dev != NULL) {
|
if (wh->hid_hololens_sensors_dev != NULL) {
|
||||||
os_hid_destroy(wh->hid_hololens_senors_dev);
|
os_hid_destroy(wh->hid_hololens_sensors_dev);
|
||||||
wh->hid_hololens_senors_dev = NULL;
|
wh->hid_hololens_sensors_dev = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wh->hid_control_dev != NULL) {
|
if (wh->hid_control_dev != NULL) {
|
||||||
|
@ -471,7 +471,7 @@ wmr_hmd_create(struct os_hid_device *hid_holo, struct os_hid_device *hid_ctrl, e
|
||||||
wh->base.orientation_tracking_supported = true;
|
wh->base.orientation_tracking_supported = true;
|
||||||
wh->base.position_tracking_supported = false;
|
wh->base.position_tracking_supported = false;
|
||||||
wh->base.hand_tracking_supported = false;
|
wh->base.hand_tracking_supported = false;
|
||||||
wh->hid_hololens_senors_dev = hid_holo;
|
wh->hid_hololens_sensors_dev = hid_holo;
|
||||||
wh->hid_control_dev = hid_ctrl;
|
wh->hid_control_dev = hid_ctrl;
|
||||||
|
|
||||||
snprintf(wh->base.str, XRT_DEVICE_NAME_LEN, "HP Reverb VR Headset");
|
snprintf(wh->base.str, XRT_DEVICE_NAME_LEN, "HP Reverb VR Headset");
|
||||||
|
|
|
@ -61,7 +61,7 @@ struct wmr_hmd
|
||||||
* init it is owned by the reading thread, there is no mutex protecting
|
* init it is owned by the reading thread, there is no mutex protecting
|
||||||
* this field as it's only used by the reading thread in @p oth.
|
* this field as it's only used by the reading thread in @p oth.
|
||||||
*/
|
*/
|
||||||
struct os_hid_device *hid_hololens_senors_dev;
|
struct os_hid_device *hid_hololens_sensors_dev;
|
||||||
struct os_hid_device *hid_control_dev;
|
struct os_hid_device *hid_control_dev;
|
||||||
|
|
||||||
//! Latest raw IPD value from the device.
|
//! Latest raw IPD value from the device.
|
||||||
|
|
Loading…
Reference in a new issue