Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't get GVD a second time to check if camera is locked #12528

Merged
merged 2 commits into from Dec 20, 2023

Conversation

OhadMeir
Copy link
Contributor

To make minimum changes I added an overload to ds_device_common::is_locked that gets the previously queried buffer, avoiding the need to get the GVD buffer again.

@OhadMeir OhadMeir requested a review from Nir-Az December 19, 2023 13:13
@@ -121,6 +121,12 @@ namespace librealsense
return _is_locked;
}

bool ds_device_common::is_locked( const uint8_t * gvd_buff, uint32_t offset )
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let delete the other function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted unused functions

@Nir-Az Nir-Az merged commit ab04b1e into IntelRealSense:development Dec 20, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants