Skip to content

Commit

Permalink
PR #13675 from Nir-Az: Fix playback device
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Jan 12, 2025
2 parents 273a8f7 + bd42ce0 commit a960e32
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions common/dds-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,17 @@ priority rs2::dds_model::classifyPriority( link_priority & pr )

bool dds_model::check_DDS_support()
{
auto dev = debug_protocol( _device );
auto cmd = dev.build_command( GET_ETH_CONFIG, ACTUAL_VALUES );
auto data = dev.send_and_receive_raw_data( cmd );
int32_t const & code = *reinterpret_cast< int32_t const * >( data.data() );
if( code != GET_ETH_CONFIG )
return false;
return true;
if (_device.is<rs2::debug_protocol>())
{
auto dev = debug_protocol( _device );
auto cmd = dev.build_command( GET_ETH_CONFIG, ACTUAL_VALUES );
auto data = dev.send_and_receive_raw_data( cmd );
int32_t const & code = *reinterpret_cast< int32_t const * >( data.data() );
if( code == GET_ETH_CONFIG )
return true;
}

return false;
}

void rs2::dds_model::ipInputText( std::string label, ip_address & ip )
Expand Down

0 comments on commit a960e32

Please sign in to comment.