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

comments cleanup and debounce comments #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mattvenn
Copy link

The only code change I made was this:

changes = delta & ~debouncer->db0 & ~debouncer->db1;

Instead of:

changes = ~(~delta | (debouncer->db0) | (debouncer->db1));

Which are equivalent, but the first makes more intuitive sense: only change when delta is true and the counter is wrapped back to 0.

@obra
Copy link
Member

obra commented Jun 16, 2017 via email

Copy link

@algernon algernon left a comment

Choose a reason for hiding this comment

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

I'm not sure how I could test this on the hardware, but the changes look good, and the new comments help a lot in understanding the code.

As the Model01 firmware has been tagged, I believe this could go in now.

@obra
Copy link
Member

obra commented Nov 26, 2017

@algernon - Can you split this out to two separate things: comments and code refactoring? The comments should be good to go in immediately. The code refactoring, we'd want to test more carefully.

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.

3 participants