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

restricting the D405 w/a for calibration resolution to D405 PID only #10913

Conversation

remibettan
Copy link
Contributor

Tracked by: LRS-517

@@ -2014,24 +2014,27 @@ namespace rs2
{
// checking format
bool is_cal_format = false;
for (auto it = stream_enabled.begin(); it != stream_enabled.end(); ++it)
if (dev.supports(RS2_CAMERA_INFO_PRODUCT_ID) && !strcmp(dev.get_info(RS2_CAMERA_INFO_PRODUCT_ID), "0B5B"))
Copy link
Collaborator

@Nir-Az Nir-Az Sep 18, 2022

Choose a reason for hiding this comment

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

  1. Please add a comment about what 0B5B means, magic numbers should not be used without explaining.
    I would maybe add a static const string D405_PID = "0B5B" for all D405 usage in this file

  2. Please explain (add a comment) why all except D405 should always return false here (I hate strcmp return value :) )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

LGTM

@Nir-Az Nir-Az merged commit 39786d8 into IntelRealSense:development Sep 20, 2022
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.

2 participants