Skip to content

Commit

Permalink
restricting the D405 w/a for calibration resolution to D405 PID only
Browse files Browse the repository at this point in the history
  • Loading branch information
remibettan committed Sep 18, 2022
1 parent 8ddebea commit 3d9d319
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions common/model-views.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
{
if (it->second)
for (auto it = stream_enabled.begin(); it != stream_enabled.end(); ++it)
{
int selected_format_index = -1;
if (ui.selected_format_id.count(it->first) > 0)
selected_format_index = ui.selected_format_id.at(it->first);

if (format_values.count(it->first) > 0 && selected_format_index > -1)
if (it->second)
{
auto formats = format_values.at(it->first);
if (formats.size() > selected_format_index)
int selected_format_index = -1;
if (ui.selected_format_id.count(it->first) > 0)
selected_format_index = ui.selected_format_id.at(it->first);

if (format_values.count(it->first) > 0 && selected_format_index > -1)
{
auto format = formats[selected_format_index];
if (format == RS2_FORMAT_Y16)
auto formats = format_values.at(it->first);
if (formats.size() > selected_format_index)
{
is_cal_format = true;
break;
auto format = formats[selected_format_index];
if (format == RS2_FORMAT_Y16)
{
is_cal_format = true;
break;
}
}
}
}
Expand Down

0 comments on commit 3d9d319

Please sign in to comment.