Skip to content

Commit

Permalink
fixup! move legacy set-option type conversion to rs-dds-option; guard…
Browse files Browse the repository at this point in the history
… against exceptions in options-changed callback
  • Loading branch information
maloel committed Apr 4, 2024
1 parent 32c0826 commit 80f0b64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dds/rs-dds-option.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 << ")" );
Expand Down

0 comments on commit 80f0b64

Please sign in to comment.