FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Profiles page. by klutvott123 · Pull Request #432 · betaflight/betaflight-tx-lua-scripts · GitHub

Add Profiles page. - #432

Merged
klutvott123 merged 1 commit into
betaflight:masterfrom
klutvott123:profile-select
Feb 4, 2022
Merged

klutvott123 merged 1 commit into
betaflight:masterfrom
klutvott123:profile-select

Conversation

Copy link
Copy Markdown
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 added this to the 1.6 milestone Feb 3, 2022
klutvott123 self-assigned this Feb 3, 2022
Comment thread src/SCRIPTS/BF/pages.lua
end

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Move to line 12?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 merged commit 20beaab into betaflight:master Feb 4, 2022
klutvott123 deleted the profile-select branch February 16, 2023 19:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants


Back | FazBrowse Home | New Git URL