Skip to content

Commit cc66c28

Browse files
committed
adding d555 to method get_default_fw_image
1 parent 8ec9329 commit cc66c28

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

common/fw-update-helper.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace rs2
5757
std::string get_available_firmware_version(int product_line, const std::string& pid)
5858
{
5959
if (product_line == RS2_PRODUCT_LINE_D400) return FW_D4XX_FW_IMAGE_VERSION;
60-
else if (pid == "0B56") return FW_D555_FW_IMAGE_VERSION;
60+
else if (pid == "0B56" || pid == "DDS") return FW_D555_FW_IMAGE_VERSION;
6161
else return "";
6262
}
6363

@@ -77,6 +77,16 @@ namespace rs2
7777
image = std::vector< uint8_t >( hex, hex + size );
7878
}
7979
}
80+
case RS2_PRODUCT_LINE_D500:
81+
{
82+
bool allow_rc_firmware = config_file::instance().get_or_default(configurations::update::allow_rc_firmware, false);
83+
if (strlen(FW_D555_FW_IMAGE_VERSION) && !allow_rc_firmware)
84+
{
85+
int size = 0;
86+
auto hex = fw_get_D555_FW_Image(size);
87+
image = std::vector< uint8_t >(hex, hex + size);
88+
}
89+
}
8090
break;
8191
default:
8292
break;

common/fw/fw.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#include "D4XX_FW_Image.rc"
2+
#include "D555_FW_Image.rc"
23

0 commit comments

Comments
 (0)