Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L500 device - block return to visual preset default option + cancel max_range on stream start #6617

Merged

Conversation

Nir-Az
Copy link
Collaborator

@Nir-Az Nir-Az commented Jun 17, 2020

System requirement - When the user try to return to visual preset "Default" he will get an error on the viewer + exception on the API
image

Tracked on: RS5-7898

@ev-mp ev-mp requested review from maloel and aangerma June 17, 2020 11:47
@@ -164,6 +165,12 @@ namespace librealsense
case RS2_L500_VISUAL_PRESET_CUSTOM:
move_to_custom();
break;
case RS2_L500_VISUAL_PRESET_DEFAULT:
LOG_ERROR("changing back to default is disabled by design");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Need to give context: in the log, someone will not understand what you're talking about

@@ -164,6 +165,12 @@ namespace librealsense
case RS2_L500_VISUAL_PRESET_CUSTOM:
move_to_custom();
break;
case RS2_L500_VISUAL_PRESET_DEFAULT:
LOG_ERROR("changing back to default is disabled by design");
throw invalid_value_exception(to_string() << "the Default preset signifies that the controls have not been changed \n"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Capitalize The

@ev-mp ev-mp merged commit f58d6fc into IntelRealSense:development Jun 22, 2020
@Nir-Az Nir-Az deleted the l500_preset_dont_change_laser_power branch July 29, 2020 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants