From bd42ce0a30523ea05fd32e4a1e87230078ca72d6 Mon Sep 17 00:00:00 2001 From: Nir Azkiel Date: Sun, 12 Jan 2025 10:47:52 +0200 Subject: [PATCH] fix playback device --- common/dds-model.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/common/dds-model.cpp b/common/dds-model.cpp index 50d95c75e6..47de35641c 100644 --- a/common/dds-model.cpp +++ b/common/dds-model.cpp @@ -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()) + { + 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 )