Skip to content

comments cleanup and debounce comments#1

Open
mattvenn wants to merge 2 commits into
keyboardio:masterfrom
Dygmalab:master
Open

comments cleanup and debounce comments#1
mattvenn wants to merge 2 commits into
keyboardio:masterfrom
Dygmalab:master

Conversation

@mattvenn

Copy link
Copy Markdown

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

obra commented Jun 16, 2017 via email

Copy link
Copy Markdown
Member

@algernon algernon left a comment

Copy link
Copy Markdown

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

obra commented Nov 26, 2017

Copy link
Copy Markdown
Member

@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