Skip to content

Commit

Permalink
power line freq option not registered for d457
Browse files Browse the repository at this point in the history
  • Loading branch information
remibettan committed Mar 4, 2024
1 parent debaddd commit b14d8bd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ds/d400/d400-color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,19 @@ namespace librealsense
void d400_color::register_options()
{
auto& color_ep = get_color_sensor();
auto raw_color_ep = get_raw_color_sensor();

color_ep.register_option(RS2_OPTION_POWER_LINE_FREQUENCY,
std::make_shared<uvc_pu_option>(raw_color_ep, RS2_OPTION_POWER_LINE_FREQUENCY,
std::map<float, std::string>{ { 0.f, "Disabled"},
{ 1.f, "50Hz" },
{ 2.f, "60Hz" },
{ 3.f, "Auto" }, }));

if (!val_in_range(_pid, { ds::RS457_PID }))
{
_ds_color_common->register_color_options();
color_ep.register_pu(RS2_OPTION_BACKLIGHT_COMPENSATION);

auto raw_color_ep = get_raw_color_sensor();
color_ep.register_option(RS2_OPTION_POWER_LINE_FREQUENCY,
std::make_shared<uvc_pu_option>(raw_color_ep, RS2_OPTION_POWER_LINE_FREQUENCY,
std::map<float, std::string>{ { 0.f, "Disabled"},
{ 1.f, "50Hz" },
{ 2.f, "60Hz" },
{ 3.f, "Auto" }, }));
}

if (_separate_color)
Expand Down

0 comments on commit b14d8bd

Please sign in to comment.