Skip to content

Commit

Permalink
Update i2cNavKey.cpp
Browse files Browse the repository at this point in the history
Fixed OnIncrement autoconfig bug
  • Loading branch information
Saimon committed May 5, 2020
1 parent c3e8a58 commit 64c6a94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/i2cNavKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ void i2cNavKey::autoconfigInterrupt(void) {
if (onCentralDoublePush != NULL)
reg |= CTRDP;

if (onIncrement != NULL)
reg |= RINC;

if (onDecrement != NULL)
reg |= RDEC;

Expand Down

0 comments on commit 64c6a94

Please sign in to comment.