-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FW update aligned for D400/D500 #12395
Conversation
2897c78
to
7c94a18
Compare
src/ds/ds-device-common.cpp
Outdated
@@ -256,6 +257,13 @@ namespace librealsense | |||
|
|||
void ds_device_common::update_flash(const std::vector<uint8_t>& image, rs2_update_progress_callback_sptr callback, int update_mode) | |||
{ | |||
// check if the given FW size matches the expected FW size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation off?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/ds/ds-device-common.cpp
Outdated
@@ -256,6 +257,13 @@ namespace librealsense | |||
|
|||
void ds_device_common::update_flash(const std::vector<uint8_t>& image, rs2_update_progress_callback_sptr callback, int update_mode) | |||
{ | |||
// check if the given FW size matches the expected FW size | |||
if( image.size() != unsigned_fw_size ) | |||
throw librealsense::invalid_value_exception( rsutils::string::from() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent still looks off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, now I see the indent issue, I fixed the comment indent before.
Fixed
Tracked on [RSDEV-733]