diff --git a/src/ds5/ds5-device.cpp b/src/ds5/ds5-device.cpp index 4838266f57..cfc1a0445d 100644 --- a/src/ds5/ds5-device.cpp +++ b/src/ds5/ds5-device.cpp @@ -1129,42 +1129,6 @@ namespace librealsense lazy([default_depth_units]() { return default_depth_units; }))); } - - // D457 dev - auto gain and exposure limits disabled for all devices - if (false) // D457 dev - this condition should be removed after bug resolved in FW - { - // Auto exposure and gain limit - if (_fw_version >= firmware_version("5.12.10.11")) - { - auto exposure_range = depth_sensor.get_option(RS2_OPTION_EXPOSURE).get_range(); - auto gain_range = depth_sensor.get_option(RS2_OPTION_GAIN).get_range(); - - option_range enable_range = { 0.f /*min*/, 1.f /*max*/, 1.f /*step*/, 0.f /*default*/ }; - - //GAIN Limit - auto gain_limit_toggle_control = std::make_shared(RS2_OPTION_AUTO_GAIN_LIMIT_TOGGLE, enable_range, "Toggle Auto-Gain Limit", *_hw_monitor); - _gain_limit_value_control = std::make_shared(*_hw_monitor, &depth_sensor, gain_range, gain_limit_toggle_control); - depth_sensor.register_option(RS2_OPTION_AUTO_GAIN_LIMIT_TOGGLE, gain_limit_toggle_control); - - depth_sensor.register_option(RS2_OPTION_AUTO_GAIN_LIMIT, - std::make_shared( - _gain_limit_value_control, - gain_limit_toggle_control - - )); - - // EXPOSURE Limit - auto ae_limit_toggle_control = std::make_shared(RS2_OPTION_AUTO_EXPOSURE_LIMIT_TOGGLE, enable_range, "Toggle Auto-Exposure Limit", *_hw_monitor); - _ae_limit_value_control = std::make_shared(*_hw_monitor, &depth_sensor, exposure_range, ae_limit_toggle_control); - depth_sensor.register_option(RS2_OPTION_AUTO_EXPOSURE_LIMIT_TOGGLE, ae_limit_toggle_control); - - depth_sensor.register_option(RS2_OPTION_AUTO_EXPOSURE_LIMIT, - std::make_shared( - _ae_limit_value_control, - ae_limit_toggle_control - )); - } - } }); //group_multiple_fw_calls