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

C6287 Redundant Code in zero-order.cpp, probably from a cut/paste error #5733

Closed
JTrantow opened this issue Jan 28, 2020 · 1 comment
Closed

Comments

@JTrantow
Copy link
Contributor

Required Info
Camera Model { D400 }
Firmware Version NA
Operating System & Version Win10
Platform PC
SDK Version { 2.}
Language {C++ }

Issue Description

zero-order.cpp try_get_zo_rtd_ir_point_values() contains a line testing values.rtd.size() twice.

    if (values_rtd.size() == 0 || values_rtd.size() == 0)

Looks like a classic cut and paste error that should be

    if ((values_rtd.size() == 0) || (values_ir.size() == 0))
dorodnic added a commit that referenced this issue Feb 6, 2020
Fix what appears to be a copy/paste redundant code problem. Issue #5733
@dorodnic
Copy link
Contributor

Hi @JTrantow
Thanks for the fixes

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

No branches or pull requests

2 participants