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

Ft6x06 touch status fix and impoved report efficency #2060

Merged
merged 3 commits into from Aug 18, 2020

Conversation

alexandruradovici
Copy link
Contributor

Pull Request Overview

This pull request fixes a bug in ft6x06 when reporting the touch status. It also reports touches more efficiently to the user land, scheduling a callback only when the position or status changes.

Testing Strategy

This pull request was tested using an stm32f412g discovery.

TODO or Help Wanted

N/A

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@alexandruradovici alexandruradovici changed the title Ft6x06 touch status fix and report efficency Ft6x06 touch status fix and impoved report efficency Jul 31, 2020
@@ -41,6 +43,9 @@ impl Default for App {
events_buffer: None,
ack: true,
dropped_events: 0,
x: 0,
y: 0,
status: 3,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could status be changed to be a TouchStatus type, and an Unstarted variant added to TouchStatus? I find this initialization to 3 confusing and prone to breakage in the future if additional variants are added to TouchStatus.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thank you for the tip.

@alexandruradovici
Copy link
Contributor Author

Hey, any updates on merging this?

@hudson-ayers
Copy link
Contributor

bors r+

@bors bors bot merged commit 6260afa into tock:master Aug 18, 2020
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.

None yet

2 participants