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

Refactor to common page logic #266

Merged
merged 13 commits into from
Oct 21, 2019

Conversation

frozenskys
Copy link
Contributor

Now that OpenTx has aligned around screen size rather than device, it seems to make sense to refactor the BF lua script code in the same way.

I have tried to extract the page logic into device agnostic common pages, and the actual screen layout in to resolution dependent "Layouts." As part of this I have also moved some settings up to the radio level from the pages where it seemed to make sense.

Opening as a draft for comments...

Copy link
Member

@mikeller mikeller left a comment

Choose a reason for hiding this comment

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

I like where this is going - especially for pages that require custom functionality this will make maintenance a lot easier. 👍

@frozenskys frozenskys marked this pull request as ready for review October 17, 2019 19:45
@frozenskys
Copy link
Contributor Author

Gone as far as I can without feedback, ideas for further refactoring, etc.

mikeller
mikeller previously approved these changes Oct 20, 2019
Copy link
Member

@mikeller mikeller left a comment

Choose a reason for hiding this comment

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

This looks good to me now, apart from needing a rebase.

@raphaelcoeffic: What are your thoughts?

@mikeller mikeller added this to the 1.5 milestone Oct 20, 2019
@mikeller mikeller merged commit 478f79b into betaflight:master Oct 21, 2019
@frozenskys frozenskys deleted the refactor-to-screen-sizes branch October 22, 2019 12:44
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