Skip to content

Commit 64c6a94

Browse files
author
Saimon
committed
Update i2cNavKey.cpp
Fixed OnIncrement autoconfig bug
1 parent c3e8a58 commit 64c6a94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/i2cNavKey.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ void i2cNavKey::autoconfigInterrupt(void) {
375375
if (onCentralDoublePush != NULL)
376376
reg |= CTRDP;
377377

378+
if (onIncrement != NULL)
379+
reg |= RINC;
380+
378381
if (onDecrement != NULL)
379382
reg |= RDEC;
380383

0 commit comments

Comments
 (0)