Skip to content

Commit

Permalink
CR updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Dec 11, 2023
1 parent 5a66f01 commit 4fc24a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 13 additions & 10 deletions src/ds/d400/d400-active.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,24 @@ namespace librealsense
auto pid = this->_pid;
auto& depth_ep = get_depth_sensor();
auto &raw_depth_ep = get_raw_depth_sensor();
auto uvc_s = std::dynamic_pointer_cast<uvc_sensor>(raw_depth_ep.shared_from_this());
if (!uvc_s)
throw std::runtime_error("Sensor base is not uvc sensor");

if (pid == ds::RS457_PID)
if( pid == ds::RS457_PID )
{
depth_ep.register_option(RS2_OPTION_PROJECTOR_TEMPERATURE,
std::make_shared<projector_temperature_option_mipi>(_hw_monitor,
RS2_OPTION_PROJECTOR_TEMPERATURE));
depth_ep.register_option( RS2_OPTION_PROJECTOR_TEMPERATURE,
std::make_shared< projector_temperature_option_mipi >(
_hw_monitor,
RS2_OPTION_PROJECTOR_TEMPERATURE ) );
}
else
{
depth_ep.register_option(RS2_OPTION_PROJECTOR_TEMPERATURE,
std::make_shared<asic_and_projector_temperature_options>(std::move(uvc_s),
RS2_OPTION_PROJECTOR_TEMPERATURE));
auto uvc_s = std::dynamic_pointer_cast< uvc_sensor >( raw_depth_ep.shared_from_this() );
if( ! uvc_s )
throw std::runtime_error( "Sensor base is not a uvc sensor" );

depth_ep.register_option( RS2_OPTION_PROJECTOR_TEMPERATURE,
std::make_shared< asic_and_projector_temperature_options >(
std::move( uvc_s ),
RS2_OPTION_PROJECTOR_TEMPERATURE ) );
}
}
}
2 changes: 1 addition & 1 deletion src/ds/ds-active-common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "d400/d400-private.h" // for RS_USB2_PID
#include "ds-options.h"

#include <backend-device.h>
#include <src/backend-device.h>

namespace librealsense
{
Expand Down

0 comments on commit 4fc24a5

Please sign in to comment.