Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
check if not in recovery mode
  • Loading branch information
AviaAv committed Oct 23, 2025
commit 7e2e1b8ac1f18c7287f74f0c99a9402a97b645dc
2 changes: 1 addition & 1 deletion src/ds/advanced_mode/advanced_mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace librealsense
if( dynamic_cast< depth_sensor * >( base ) )
_depth_sensor = base;
}
if( !_depth_sensor )
if( !_depth_sensor && !dynamic_cast<update_device_interface *> (dev) )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we run this code on recovery mode? Is it inherent from a recovery device?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my message about checking if recovery in rs-dds-device-proxy.
USB recovery devices are not ds_advanced_mode_base (so not trying to initialize), but for DDS we inherit it without knowing in advance if we are a recovery device or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to rs-dds-device-proxy

throw std::runtime_error( "Advanced mode expects camera to have a depth sensor" );

for( size_t i = 0; i < _dev->get_sensors_count(); ++i )
Expand Down
Loading