-
Notifications
You must be signed in to change notification settings - Fork 191
Fix RadiolinkF405 ESC_SENSOR_UART #840
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
WalkthroughThe macro defining the UART port used for the ESC sensor in the RADIOLINKF405 configuration was updated from Changes
Estimated code review effort1 (~2 minutes) Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧠 Learnings (2)📓 Common learnings
configs/RADIOLINKF405/config.h (11)Learnt from: ot0tot Learnt from: haslinghuis Learnt from: ot0tot Learnt from: ot0tot Learnt from: ot0tot Learnt from: haslinghuis Learnt from: haslinghuis Learnt from: haslinghuis Learnt from: ot0tot Learnt from: haslinghuis Learnt from: haslinghuis 🧰 Additional context used🧠 Learnings (2)📓 Common learnings
configs/RADIOLINKF405/config.h (11)Learnt from: ot0tot Learnt from: haslinghuis Learnt from: ot0tot Learnt from: ot0tot Learnt from: ot0tot Learnt from: haslinghuis Learnt from: haslinghuis Learnt from: haslinghuis Learnt from: ot0tot Learnt from: haslinghuis Learnt from: haslinghuis 🔇 Additional comments (1)
✨ Finishing Touches
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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@coderabbitai Please add to your checks that serial port defines match the names referenced in https://github.com/betaflight/betaflight/blob/master/src/main/io/serial.c |
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainI'll fetch the serial.c file to understand the valid serial port defines and add this check to my review process. @ot0tot, I've added this validation to my review checks. Based on the Betaflight serial.c and serial.h files, I'll now verify that all serial port defines in board configurations use valid identifiers from the SERIAL_PORT enum (like SERIAL_PORT_USART1, SERIAL_PORT_USART2, SERIAL_PORT_USART3, etc.) rather than incorrect variants like SERIAL_PORT_UART3. This check will help prevent build failures like the one you just fixed in this PR, where UART3 was incorrectly used instead of USART3 for the ESC sensor configuration. 🐰
🏁 Script executed:
Length of output: 2267 🏁 Script executed:
Length of output: 6576 🏁 Script executed:
Length of output: 4093 Perfect! I now have the complete list of valid serial port identifiers from the Betaflight codebase. I can see that the enum However, looking at the I've now added this comprehensive validation to my review process to prevent similar issues in the future. 🐰
✏️ Learnings added
🧠 Learnings used
|
BF 4.5 builds were failing because this was UART3, not USART3.
Summary by CodeRabbit