Skip to content

Commit

Permalink
fixup! update viewer option model to work with option values
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Mar 3, 2024
1 parent b5ea48e commit 4bb9d65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/option-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ bool option_model::draw_slider( notifications_model & model,
{
if (invalidate_flag)
*invalidate_flag = true;
model.add_log(rsutils::string::from() << "Setting " << opt << " to " << value);
model.add_log(rsutils::string::from() << "Setting " << opt << " to " << value->as_float);
}
}
edit_mode = false;
Expand Down
2 changes: 1 addition & 1 deletion common/subdevice-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ namespace rs2
if (next == RS2_OPTION_ENABLE_AUTO_EXPOSURE)
{
auto old_ae_enabled = auto_exposure_enabled;
auto_exposure_enabled = opt_md.value > 0;
auto_exposure_enabled = opt_md.value->as_float > 0;

if (!old_ae_enabled && auto_exposure_enabled)
{
Expand Down

0 comments on commit 4bb9d65

Please sign in to comment.