Skip to content
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

Corrected CMS copy profiles, was hardcoded for 3 profiles only. #121

Merged

Conversation

AndersHoglund
Copy link
Contributor

CMS copy profiles was hard coded for 3 profiles only. Now follows config item PROFILE_COUNT, up to max 6 profiles.

@AndersHoglund AndersHoglund changed the title Correctde CMS copy profiles, was hardcoded for 3 profiles only. Corrected CMS copy profiles, was hardcoded for 3 profiles only. Jun 16, 2024
"-",
"1",
"2",
"3"
#if PROFILE_COUNT >= 4
,"4"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest using "...", (comma in the end for all entries)
as it is more readable. C allows the comma after the last entry, so that's not a problem.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to figure out the max number of profiles... you could simply define the names for 6, as thats the maximum

@AndersHoglund
Copy link
Contributor Author

OK, updated according to comment.

@rotorflight rotorflight merged commit 2459294 into rotorflight:master Jun 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants