Repository navigation
chore: remove dead main.c code and share the BLE config constants - #79
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 16 minutes. View limit details
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Shared BLE settings and consumers src/ble_dfu_cfg.h, lib/sdk11/components/ble/ble_services/ble_dfu/ble_dfu.c, lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c, src/main.c |
The shared header defines BLE settings used by the DFU service, BLE transport, and main module. The DFU packet length now uses BLEGATT_ATT_MTU_MAX - 3. |
OTA bootloader changes
| Layer / File(s) | Summary |
|---|---|
Remove MBR address population lib/sdk11/components/libraries/bootloader_dfu/bootloader.h, lib/sdk11/components/libraries/bootloader_dfu/bootloader_settings.c, src/main.c |
The bootloader_mbr_addrs_populate function, its public declaration, and a commented-out call were removed. |
OTA initialization and watchdog notes src/main.c, lib/sdk11/components/libraries/bootloader_dfu/bootloader.c |
The OTA path now calls mbr_init_sd() unconditionally. A prior _sd_inited assignment was removed. Comments describe the persistent 90-second watchdog constraint. |
Build optimization
| Layer / File(s) | Summary |
|---|---|
Enable and document LTO Makefile, changelog.md, AGENTS.md |
The compiler flags add -flto. The changelog records the reported flash-size change, and the GCC guidance no longer mentions the diagnostic pragma workaround. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Refactor
Suggested reviewers: rcarteraz
Merge Risk: 
Minimal · up to 9327e
-
No merge-blocking issue is established; the change is ready for normal build and board-matrix checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 5 files. (3 skipped: 3 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
⚔️ Resolve merge conflicts: 💡
-
- Resolve merge conflict in branch
chore/main-cleanup
- Resolve merge conflict in branch
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the build flags bright,
Then hops through BLE settings right.
The OTA path gets one clear call,
Old address writes no longer stall.
Three kilobytes, the notes proclaim,
And carrots cheer the smaller frame.
Comment @coderabbitai help to get the list of available commands.
1986668 to
caf56fe
Compare
|
@coderabbitai review |
|
9327eb2 to
94410c3
Compare
Checklist
tools/build_all.py(or CI's board matrix) passesDescription of Change
Removes the dead
_sd_initedassignment and first guard (it stays live after an OTA session), the unusedbootloader_mbr_addrs_populate, and moves the BLE event length, MTU and connection config constants into one header. 16 B smaller, no behavior change.Summary by CodeRabbit