Skip to content

Commit

Permalink
PR IntelRealSense#12683 from OhadMeir: Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Feb 20, 2024
2 parents 4ee19df + 7503f22 commit 5af4400
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
32 changes: 16 additions & 16 deletions common/subdevice-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,26 @@ namespace rs2
auto opt = static_cast<rs2_option>(i);

options_metadata[opt] = create_option_model(opt, opt_base_label, this, s, options_invalidated, error_message);
try
}
try
{
s->on_options_changed( [this]( const options_list & list )
{
s->on_options_changed( [this]( const options_list & list )
for( auto changed_option : list )
{
for( auto changed_option : list )
auto it = options_metadata.find( changed_option->id );
if( it != options_metadata.end() && ! _destructing ) // Callback runs in different context, check options_metadata still valid
{
auto it = options_metadata.find( changed_option->id );
if( it != options_metadata.end() && ! _destructing ) // Callback runs in different context, check options_metadata still valid
{
if( RS2_OPTION_TYPE_FLOAT == changed_option->type )
it->second.value = changed_option->as_float;
}
if( RS2_OPTION_TYPE_FLOAT == changed_option->type )
it->second.value = changed_option->as_float;
}
} );
}
catch( const std::exception & e )
{
if( viewer.not_model )
viewer.not_model->add_log( e.what(), RS2_LOG_SEVERITY_WARN );
}
}
} );
}
catch( const std::exception & e )
{
if( viewer.not_model )
viewer.not_model->add_log( e.what(), RS2_LOG_SEVERITY_WARN );
}
}

Expand Down
4 changes: 0 additions & 4 deletions src/ds/d500/d500-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,6 @@ namespace librealsense

_is_locked = _ds_device_common->is_locked( gvd_buff.data(), is_camera_locked_offset );

depth_sensor.register_option(RS2_OPTION_OUTPUT_TRIGGER_ENABLED,
std::make_shared<uvc_xu_option<uint8_t>>(raw_depth_sensor, depth_xu, DS5_EXT_TRIGGER,
"Generate trigger from the camera to external device once per frame"));


//EXPOSURE AND GAIN - preparing uvc options
auto exposure_option = std::make_shared<uvc_xu_option<uint32_t>>(raw_depth_sensor,
Expand Down

0 comments on commit 5af4400

Please sign in to comment.