Skip to content
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

fix compute_progress() bug; improve D500 FW update output #13580

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Dec 5, 2024

Now that D500 FW update works, did some more testing and noticed the progress messages were not good. Fixed a bug. Improved. Added some info messages and improved flow readability (with debug).

Tracked on [RSDEV-2955]

@maloel maloel added the bug label Dec 5, 2024
@maloel maloel requested a review from OhadMeir December 5, 2024 17:48
@Nir-Az Nir-Az requested review from remibettan and removed request for OhadMeir December 5, 2024 18:40
@Nir-Az
Copy link
Collaborator

Nir-Az commented Dec 5, 2024

Hey,
Since some of the original code for d500 was implemented by Remi and we need to make sure no other D500 regression, I switched the review to Remi

@maloel
Copy link
Collaborator Author

maloel commented Dec 5, 2024

Hey, Since some of the original code for d500 was implemented by Remi and we need to make sure no other D500 regression, I switched the review to Remi

No problem. But I didn't change any logic.

@@ -143,7 +142,7 @@ ds_d500_update_device::ds_d500_update_device( std::shared_ptr< const device_info
for (int i = 1; i <= 100; i++)
{
auto percentage_of_transfer = i;
auto progress_for_bar = compute_progress(static_cast<float>(percentage_of_transfer), 20.f, 100.f, 5.f) / 100.f;
auto progress_for_bar = compute_progress(percentage_of_transfer / 100.f, 20.f, 100.f, 0.f) / 100.f;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check that this change is OK both when working with viewer and rs-fw-update tools.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested :)

Copy link
Contributor

@remibettan remibettan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, but please check the comment before merging

@maloel maloel merged commit 16f96af into IntelRealSense:development Dec 9, 2024
23 checks passed
@maloel maloel deleted the development branch December 9, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants