Skip to content

Extended HWM - Reuse first chunk - #12693

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
Nir-Az:extended-buffer-refactor
Feb 26, 2024
Merged

Nir-Az merged 1 commit into
realsenseai:developmentfrom
Nir-Az:extended-buffer-refactor

Conversation

@Nir-Az

@Nir-Az Nir-Az commented Feb 21, 2024 •

Copy link
Copy Markdown
Collaborator

Continue #12682

@Nir-Az
Nir-Az requested a review from remibettan February 22, 2024 07:22
// in the future the FW should send chunk 1 in 0/0 command and then we can use it here.
// meaning remove the 'clear' and start the loop from 1

recv_msg.clear();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you removed the clear command
So the received message on the second call with be appended after the first one - according to the title of this PR, it seems this was your aim, but please explain.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, as you know, we have 2 use cases.

  • HMC < 1000 bytes
    We append the full message to recv_msg and skip the next loop
  • HMC > 1000 bytes
  • _We append the first chunk message to recv_msg, then step into the loop and append chunk 1 - (num_of_chunks - 1) _

Sounds OK?

@Nir-Az
Nir-Az marked this pull request as draft February 22, 2024 11:32

@remibettan remibettan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Nir-Az
Nir-Az marked this pull request as ready for review February 26, 2024 10:11
@Nir-Az
Nir-Az merged commit 544b6c8 into realsenseai:development Feb 26, 2024
@Nir-Az
Nir-Az deleted the extended-buffer-refactor branch September 30, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants