fix compute_progress() bug; improve D500 FW update output#13580
Merged
maloel merged 2 commits intorealsenseai:developmentfrom Dec 9, 2024
Merged
fix compute_progress() bug; improve D500 FW update output#13580maloel merged 2 commits intorealsenseai:developmentfrom
maloel merged 2 commits intorealsenseai:developmentfrom
Conversation
Collaborator
|
Hey, |
Contributor
Author
No problem. But I didn't change any logic. |
remibettan
reviewed
Dec 8, 2024
| { | ||
| 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; |
Contributor
There was a problem hiding this comment.
Please check that this change is OK both when working with viewer and rs-fw-update tools.
remibettan
approved these changes
Dec 8, 2024
Contributor
remibettan
left a comment
There was a problem hiding this comment.
Approving, but please check the comment before merging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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]