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(BLE): Resolve double increment of memory management in LlInitSetRtCfg #1237

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

crsz20
Copy link
Contributor

@crsz20 crsz20 commented Oct 22, 2024

Description

Problem

  • LlInitSetRtCfg() was first implemented in the mallinfo PR
  • totalMemUsed was not utilized. memUsed was incremented -- instead of overwritten -- when calling LlInitSetLlRtCfg() in addition to the preceding LlInitSetBbRtCfg(), whose memory usage was already accounted for. This is not accurate.

Fix

  • Leverage totalMemUsed
  • Overwrite memUsed when calling either LlInitSetLlRtCfg() or LlInitSetBbRtCfg()

@crsz20 crsz20 added bug Something isn't working BLE Related to Bluetooth labels Oct 22, 2024
@crsz20
Copy link
Contributor Author

crsz20 commented Oct 22, 2024

@kevin-gillespie Nice catch!

…levant changes outside of the dats/datc firmware are made, commented ME14 and ME18 checks
@github-actions github-actions bot added the Workflow Related to Workflow development label Oct 22, 2024
@crsz20 crsz20 merged commit f557dbf into main Oct 22, 2024
8 of 9 checks passed
sihyung-maxim pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Oct 22, 2024
@ttmut ttmut deleted the fix/cordio-memused-counting branch December 25, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLE Related to Bluetooth bug Something isn't working Workflow Related to Workflow development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants