Skip to content

Commit caccfdc

Browse files
committed
add check for D500 device before HWMC
1 parent aa3eace commit caccfdc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

common/dds-model.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ rs2::dds_model::priority rs2::dds_model::classifyPriority( link_priority & pr )
104104

105105
bool dds_model::check_DDS_support()
106106
{
107+
if (!_device.supports(RS2_CAMERA_INFO_PRODUCT_LINE) || !(std::string(_device.get_info(RS2_CAMERA_INFO_PRODUCT_LINE)) == "D500"))
108+
return false;
109+
107110
if( _device.is< rs2::debug_protocol >() )
108111
{
109112
if( _device.supports( RS2_CAMERA_INFO_NAME ) )

0 commit comments

Comments
 (0)