Skip to content

Reconnect tracker after turn off and on#318

Open
throni3git wants to merge 3 commits into
collabora:masterfrom
throni3git:fix/reconnect-tracker-after-turn-off-and-on
Open

Reconnect tracker after turn off and on#318
throni3git wants to merge 3 commits into
collabora:masterfrom
throni3git:fix/reconnect-tracker-after-turn-off-and-on

Conversation

@throni3git

Copy link
Copy Markdown

When turning a watchman-connected tracker device off and on again, the global scene solver failed due to some old scenes and the handle_transfer function in src/driver_vive.libusb.h did not go to the object_turned_off label. More info in #314.

Comment thread src/driver_vive.c
Comment on lines +475 to +486
static bool survive_device_is_rf(const struct DeviceInfo *device_info) {
switch (device_info->type) {
case USB_DEV_HMD:
case USB_DEV_HMD_IMU_LH:
case USB_DEV_W_WATCHMAN1:
case USB_DEV_TRACKER0:
case USB_DEV_TRACKER1:
return false;
}
return true;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function needs a better place, I'm not fond of moving it higher so src/driver_vive_libusb.h can use it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what would be a better solution?

@bl4ckb0ne bl4ckb0ne Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have the signature moved to src/driver_vive.libusb.h, somewhere in the beginning of the file.

@bl4ckb0ne

Copy link
Copy Markdown
Collaborator

Apologies for the delay in the review, I wrote the comment and forgot to submit it, it has been pending for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants