Skip to content

Conversation

klutvott123
Copy link
Member

Adds a page with pid and rate profile.
Because of how it's implemented in the firmware, both profiles can't be changed at the same time.

Fixes #430 #230 #47 #22

@klutvott123 klutvott123 added this to the 1.6 milestone Feb 3, 2022
@klutvott123 klutvott123 self-assigned this Feb 3, 2022
end

if apiVersion >= 1.016 then
PageFiles[#PageFiles + 1] = { title = "Profiles", script = "profiles.lua" }
Copy link
Member

Choose a reason for hiding this comment

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

Move to line 12?

Copy link
Member Author

Choose a reason for hiding this comment

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

By having it like this the pages can be shuffled around as we please. and if a page is to be removed we have to break it out anyway. I also like the readability of the current approach of having a if for each page.

@klutvott123 klutvott123 merged commit 20beaab into betaflight:master Feb 4, 2022
@klutvott123 klutvott123 deleted the profile-select branch February 16, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants