-
Notifications
You must be signed in to change notification settings - Fork 205
Remove redefined mag_i2c_instance BETAFPVF405 #886
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
Conversation
WalkthroughConsolidates MAG_I2C_INSTANCE definition in configs/BETAFPVF405/config.h by removing a duplicate and setting the remaining definition to I2CDEV_1. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
configs/BETAFPVF405/config.h (1)
50-50: Heads-up: I2C1 on PB8/PB9 conflicts with PPM/ESCSERIAL on PB8If MAG (I2C1) is enabled, it competes with RX_PPM_PIN/ESCSERIAL on PB8. Consider adding a clarifying comment to prevent misconfiguration.
Suggested inline comment:
+# NOTE: MAG uses I2C1 (PB8/PB9). Conflicts with PPM/ESCSERIAL on PB8; do not enable simultaneously. #define MAG_I2C_INSTANCE I2CDEV_1Also applies to: 63-65, 77-77, 105-105
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
configs/BETAFPVF405/config.h(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-06-23T18:43:31.746Z
Learnt from: haslinghuis
PR: betaflight/config#822
File: configs/AXISFLYINGH7MINI/config.h:29-37
Timestamp: 2025-06-23T18:43:31.746Z
Learning: In Betaflight configuration files, feature enablement macros like USE_MAG are build options that can be controlled at compile time, while hardware instance definitions like MAG_I2C_INSTANCE are predefined in board configurations to assist with hardware mapping when those features are enabled at build time.
Applied to files:
configs/BETAFPVF405/config.h
🔇 Additional comments (2)
configs/BETAFPVF405/config.h (2)
105-105: LGTM: De-dup and remap MAG_I2C_INSTANCE to I2CDEV_1 is correctAligns with I2C1 pins defined for this target (PB8/PB9). Removing the duplicate avoids macro redefinition noise.
105-105: All MAG_I2C_INSTANCE definitions in configs/BETAFPVF405/config.h are unique
- Verified a single
#define MAG_I2C_INSTANCE I2CDEV_1at line 105 inconfigs/BETAFPVF405/config.h- No other
MAG_I2C_INSTANCEredefinitions orI2CDEV_2usages found in that fileNo further duplicates or unexpected overrides remain.
Summary by CodeRabbit
Bug Fixes
Refactor