From 4bb9d653fa23ea896771f931bd2f8202a15337b9 Mon Sep 17 00:00:00 2001 From: Eran Date: Sun, 3 Mar 2024 17:22:55 +0200 Subject: [PATCH] fixup! update viewer option model to work with option values --- common/option-model.cpp | 2 +- common/subdevice-model.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/option-model.cpp b/common/option-model.cpp index 3dd9022ff7f..ed167ce91dd 100644 --- a/common/option-model.cpp +++ b/common/option-model.cpp @@ -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; diff --git a/common/subdevice-model.cpp b/common/subdevice-model.cpp index df2c9d1de8c..ae5a6293e97 100644 --- a/common/subdevice-model.cpp +++ b/common/subdevice-model.cpp @@ -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) {