Skip to content

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