Skip to content

Commit

Permalink
PR #12298 from Nir-Az: Use optical module SN for D500 + Disable FW ba…
Browse files Browse the repository at this point in the history
…ckup stage
  • Loading branch information
Nir-Az authored Oct 16, 2023
2 parents 52eb3e6 + 52b0804 commit 42f6b35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ds/d500/d500-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ namespace librealsense

std::vector<uint8_t> d500_device::backup_flash(update_progress_callback_ptr callback)
{
return _ds_device_common->backup_flash(callback);
// No flash backup process for D500 device
return std::vector< uint8_t >{};
}

void d500_device::update_flash(const std::vector<uint8_t>& image, update_progress_callback_ptr callback, int update_mode)
Expand Down Expand Up @@ -448,7 +449,7 @@ namespace librealsense

using namespace platform;

std::string asic_serial, pid_hex_str, usb_type_str;
std::string pid_hex_str, usb_type_str;
d500_gvd_parsed_fields gvd_parsed_fields;
bool advanced_mode = false;
bool usb_modality = true;
Expand Down Expand Up @@ -726,8 +727,7 @@ namespace librealsense

register_info(RS2_CAMERA_INFO_NAME, device_name);
register_info(RS2_CAMERA_INFO_SERIAL_NUMBER, gvd_parsed_fields.optical_module_sn);
register_info(RS2_CAMERA_INFO_ASIC_SERIAL_NUMBER, asic_serial);
register_info(RS2_CAMERA_INFO_FIRMWARE_UPDATE_ID, asic_serial);
register_info(RS2_CAMERA_INFO_FIRMWARE_UPDATE_ID, gvd_parsed_fields.optical_module_sn);
register_info(RS2_CAMERA_INFO_FIRMWARE_VERSION, gvd_parsed_fields.fw_version);
register_info(RS2_CAMERA_INFO_PHYSICAL_PORT, group.uvc_devices.front().device_path);
register_info(RS2_CAMERA_INFO_DEBUG_OP_CODE, std::to_string(static_cast<int>(fw_cmd::GLD)));
Expand Down

0 comments on commit 42f6b35

Please sign in to comment.