Repository navigation
fix(dap): support builds without JTAG - #86
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe JTAG compile-time guard now covers the ID-code declaration and port validation. When JTAG is disabled, the function ignores the request and returns ChangesJTAG ID-code handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to With JTAG disabled, the handler avoids JTAG-only state and returns DAP_ERROR. No concrete defect was found; validate the SWD-only build in the project’s target environment. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
With DAP_JTAG=0, DAP.c still compiled JTAG-specific code, causing SWD-only builds to fail. This change conditionally compiles the JTAG code and handles the unused request parameter when JTAG is disabled.
Summary by CodeRabbit