From 33d724d53a4eb08f809508376823bbdbc8ce29ca Mon Sep 17 00:00:00 2001 From: Remi Bettan Date: Thu, 28 Nov 2024 13:51:50 +0200 Subject: [PATCH] adding d555 to method get_default_fw_image --- common/fw-update-helper.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common/fw-update-helper.cpp b/common/fw-update-helper.cpp index e3c13871a64..c29daba30c4 100644 --- a/common/fw-update-helper.cpp +++ b/common/fw-update-helper.cpp @@ -57,7 +57,7 @@ namespace rs2 std::string get_available_firmware_version(int product_line, const std::string& pid) { if (product_line == RS2_PRODUCT_LINE_D400) return FW_D4XX_FW_IMAGE_VERSION; - else if (pid == "0B56") return FW_D555_FW_IMAGE_VERSION; + else if (pid == "0B56" || pid == "DDS") return FW_D555_FW_IMAGE_VERSION; else return ""; } @@ -77,6 +77,16 @@ namespace rs2 image = std::vector< uint8_t >( hex, hex + size ); } } + case RS2_PRODUCT_LINE_D500: + { + bool allow_rc_firmware = config_file::instance().get_or_default(configurations::update::allow_rc_firmware, false); + if (strlen(FW_D555_FW_IMAGE_VERSION) && !allow_rc_firmware) + { + int size = 0; + auto hex = fw_get_D555_FW_Image(size); + image = std::vector< uint8_t >(hex, hex + size); + } + } break; default: break;