From 34a1fda403ec17fcfe988db759f12a0ac45d1fbd Mon Sep 17 00:00:00 2001 From: ohadmeir Date: Mon, 2 Sep 2024 14:46:37 +0300 Subject: [PATCH] Handle PR#13302 comments --- src/dds/rs-dds-depth-sensor-proxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dds/rs-dds-depth-sensor-proxy.cpp b/src/dds/rs-dds-depth-sensor-proxy.cpp index 7d7913d6dd..6684a648a2 100644 --- a/src/dds/rs-dds-depth-sensor-proxy.cpp +++ b/src/dds/rs-dds-depth-sensor-proxy.cpp @@ -38,7 +38,7 @@ float dds_depth_sensor_proxy::get_stereo_baseline_mm() const { if( prof->get_stream_index() == 1 ) ir1 = prof; - if( prof->get_stream_index() == 2 ) + else if( prof->get_stream_index() == 2 ) ir2 = prof; } } @@ -55,7 +55,7 @@ float dds_depth_sensor_proxy::get_stereo_baseline_mm() const } } - throw std::runtime_error( "Not a stereo depth sensor. Cannot get basline information." ); + throw not_implemented_exception( "Not a stereo depth sensor. Cannot get basline information." ); } void dds_depth_sensor_proxy::add_no_metadata( frame * const f, streaming_impl & streaming )