diff --git a/common/model-views.cpp b/common/model-views.cpp index 63b029c473..d4e66012ed 100644 --- a/common/model-views.cpp +++ b/common/model-views.cpp @@ -4005,31 +4005,34 @@ namespace rs2 } } - if (ImGui::Selectable("Update Firmware...")) + if (dev.is() || dev.is()) { - begin_update({}, viewer, error_message); - } - if (ImGui::IsItemHovered()) - ImGui::SetTooltip("Install official signed firmware from file to the device"); + if (ImGui::Selectable("Update Firmware...")) + { + begin_update({}, viewer, error_message); + } + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("Install official signed firmware from file to the device"); - if ((dev.supports(RS2_CAMERA_INFO_PRODUCT_LINE)) || - (dev.query_sensors().size() && dev.query_sensors().front().supports(RS2_CAMERA_INFO_PRODUCT_LINE))) - if (ImGui::Selectable("Install Recommended Firmware ")) - { - auto sensors = dev.query_sensors(); - auto product_line_str = ""; - if (dev.supports(RS2_CAMERA_INFO_PRODUCT_LINE)) - product_line_str = dev.get_info(RS2_CAMERA_INFO_PRODUCT_LINE); - if (sensors.size() && sensors.front().supports(RS2_CAMERA_INFO_PRODUCT_LINE)) - product_line_str = sensors.front().get_info(RS2_CAMERA_INFO_PRODUCT_LINE); - int product_line = parse_product_line(product_line_str); + if ((dev.supports(RS2_CAMERA_INFO_PRODUCT_LINE)) || + (dev.query_sensors().size() && dev.query_sensors().front().supports(RS2_CAMERA_INFO_PRODUCT_LINE))) + if (ImGui::Selectable("Install Recommended Firmware ")) + { + auto sensors = dev.query_sensors(); + auto product_line_str = ""; + if (dev.supports(RS2_CAMERA_INFO_PRODUCT_LINE)) + product_line_str = dev.get_info(RS2_CAMERA_INFO_PRODUCT_LINE); + if (sensors.size() && sensors.front().supports(RS2_CAMERA_INFO_PRODUCT_LINE)) + product_line_str = sensors.front().get_info(RS2_CAMERA_INFO_PRODUCT_LINE); + int product_line = parse_product_line(product_line_str); - static auto table = create_default_fw_table(); + static auto table = create_default_fw_table(); - begin_update(table[product_line], viewer, error_message); + begin_update(table[product_line], viewer, error_message); + } + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("Install default recommended firmware for this device"); } - if (ImGui::IsItemHovered()) - ImGui::SetTooltip("Install default recommended firmware for this device"); } if (!something_to_show) diff --git a/common/realsense-ui-advanced-mode.h b/common/realsense-ui-advanced-mode.h index 871e096dba..28fb40295f 100644 --- a/common/realsense-ui-advanced-mode.h +++ b/common/realsense-ui-advanced-mode.h @@ -610,7 +610,7 @@ inline void draw_advanced_mode_controls(rs400::advanced_mode& advanced, auto to_set = false; - slider_float(error_message, "Amplitude Factor", amc.amp_factor.vals, &STAFactor::amplitude, to_set); + slider_float(error_message, "A Factor", amc.amp_factor.vals, &STAFactor::amplitude, to_set); ImGui::PopItemWidth();