Skip to content

Commit

Permalink
PR IntelRealSense#11078 from noacoohen: Add GMSL to RS Viewer for D457
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Nov 17, 2022
2 parents 43c6754 + b37351e commit db41823
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions common/model-views.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6362,6 +6362,19 @@ namespace rs2
ImGui::PopStyleColor();
ImGui::PopFont();
}
else if(dev.supports(RS2_CAMERA_INFO_PRODUCT_ID))
{
std::string device_pid = dev.get_info(RS2_CAMERA_INFO_PRODUCT_ID);
if(device_pid == "ABCD")// Specific for D457
{
ss.str( "" );
ss << " " << "GMSL";
ImGui::SameLine();
ImGui::PushStyleColor(ImGuiCol_Text, white);
ImGui::Text(" %s", ss.str().c_str());
ImGui::PopStyleColor();
}
}
}

//ImGui::Text(" %s", dev.get_info(RS2_CAMERA_INFO_NAME));
Expand Down

0 comments on commit db41823

Please sign in to comment.