Skip to content

Commit

Permalink
adding d555 to method get_default_fw_image
Browse files Browse the repository at this point in the history
  • Loading branch information
remibettan committed Nov 28, 2024
1 parent 8ec9329 commit 33d724d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion common/fw-update-helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}

Expand All @@ -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;
Expand Down

0 comments on commit 33d724d

Please sign in to comment.