-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Normalize line endings to LF in src/main/target/FLYSPARKF4V4 #11137
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
Normalize line endings to LF in src/main/target/FLYSPARKF4V4 #11137
Conversation
Co-authored-by: sensei-hacker <1971284+sensei-hacker@users.noreply.github.com>
Co-authored-by: sensei-hacker <1971284+sensei-hacker@users.noreply.github.com>
PR Compliance Guide 🔍All compliance sections have been disabled in the configurations. |
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.
High-level Suggestion
Instead of adding a .gitattributes file to a specific subdirectory, move it to the project root to enforce a consistent line ending policy for the entire repository. [High-level, importance: 8]
Solution Walkthrough:
Before:
// .gitattributes is placed in a specific subdirectory,
// limiting its scope to only that folder.
project_root/
└── src/
└── main/
└── target/
└── FLYSPARKF4V4/
├── .gitattributes
│ └─ * text=auto eol=lf
└── ... (other files with fixed line endings)
After:
// .gitattributes is moved to the project root,
// applying the line ending policy to the entire repository.
project_root/
├── .gitattributes
│ └─ * text=auto eol=lf
└── src/
└── main/
└── target/
└── FLYSPARKF4V4/
└── ... (other files with fixed line endings)
| #define USE_UART2 | ||
| #define UART2_TX_PIN PA2 | ||
| #define UART2_RX_PIN PA3 | ||
|
|
||
| #define USE_UART3 | ||
| #define UART3_TX_PIN PC10 | ||
| #define UART3_RX_PIN PC11 | ||
|
|
||
| // Internally routed to Bluetooth | ||
| #define USE_UART4 | ||
| #define UART4_TX_PIN PA0 | ||
| #define UART4_RX_PIN PA1 | ||
|
|
||
| #define USE_UART5 | ||
| #define UART5_TX_PIN PC12 // Not broken out | ||
| #define UART5_RX_PIN PD2 //ESC TLM | ||
|
|
||
| #define USE_UART6 | ||
| #define UART6_TX_PIN PC6 | ||
| #define UART6_RX_PIN PC7 | ||
|
|
||
| #define USE_SOFTSERIAL1 | ||
| #define SOFTSERIAL_1_TX_PIN PA2 | ||
| #define SOFTSERIAL_1_RX_PIN PA2 |
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.
Suggestion: Resolve a pin conflict where PA2 is assigned to both UART2_TX_PIN and SOFTSERIAL_1. Consider disabling SOFTSERIAL1 or reassigning its pins to fix the hardware conflict. [possible issue, importance: 9]
| #define USE_UART2 | |
| #define UART2_TX_PIN PA2 | |
| #define UART2_RX_PIN PA3 | |
| #define USE_UART3 | |
| #define UART3_TX_PIN PC10 | |
| #define UART3_RX_PIN PC11 | |
| // Internally routed to Bluetooth | |
| #define USE_UART4 | |
| #define UART4_TX_PIN PA0 | |
| #define UART4_RX_PIN PA1 | |
| #define USE_UART5 | |
| #define UART5_TX_PIN PC12 // Not broken out | |
| #define UART5_RX_PIN PD2 //ESC TLM | |
| #define USE_UART6 | |
| #define UART6_TX_PIN PC6 | |
| #define UART6_RX_PIN PC7 | |
| #define USE_SOFTSERIAL1 | |
| #define SOFTSERIAL_1_TX_PIN PA2 | |
| #define SOFTSERIAL_1_RX_PIN PA2 | |
| #define USE_UART2 | |
| #define UART2_TX_PIN PA2 | |
| #define UART2_RX_PIN PA3 | |
| ... | |
| // #define USE_SOFTSERIAL1 | |
| // #define SOFTSERIAL_1_TX_PIN PA2 | |
| // #define SOFTSERIAL_1_RX_PIN PA2 |
User description
Files in
src/main/target/FLYSPARKF4V4had CRLF line endings inconsistent with the rest of the repository.Changes
CMakeLists.txt,config.c,target.h.gitattributes: Prevents future CRLF commits in this foldertarget.calready had LF endings and was unchanged.Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
PR Type
Other
Description
This description is generated by an AI tool. It may have inaccuracies
Normalize CRLF line endings to LF in FLYSPARKF4V4 target files
Add
.gitattributesto enforce LF line endings going forwardAffected files:
config.c,target.h,CMakeLists.txtCode content unchanged, only line ending bytes modified
Diagram Walkthrough
File Walkthrough
config.c
Convert CRLF to LF line endingssrc/main/target/FLYSPARKF4V4/config.c
target.h
Convert CRLF to LF line endingssrc/main/target/FLYSPARKF4V4/target.h
CMakeLists.txt
Convert CRLF to LF line endingsrc/main/target/FLYSPARKF4V4/CMakeLists.txt
.gitattributes
Add .gitattributes to enforce LF endingssrc/main/target/FLYSPARKF4V4/.gitattributes
.gitattributesfile to enforce LF line endings* text=auto eol=lf