From 80f0b640173ad21e3326e37eb637d073cdbdec7a Mon Sep 17 00:00:00 2001 From: Eran Date: Thu, 4 Apr 2024 14:59:18 +0300 Subject: [PATCH] fixup! move legacy set-option type conversion to rs-dds-option; guard against exceptions in options-changed callback --- src/dds/rs-dds-option.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dds/rs-dds-option.cpp b/src/dds/rs-dds-option.cpp index 321782174f..a624b0687a 100644 --- a/src/dds/rs-dds-option.cpp +++ b/src/dds/rs-dds-option.cpp @@ -76,6 +76,7 @@ void rs_dds_option::set( float value ) { if( range.min != range.max && range.step ) { + if( value < range.min ) { throw librealsense::invalid_value_exception( rsutils::string::from() << "value (" << value << ") less than minimum (" << range.min << ")" );