Restore the logic of the key debouncer. Make it only debounce keypresses and set its timeout to 100ms.
This commit is contained in:
@@ -326,7 +326,7 @@ static void updateActiveUsbReports(void)
|
||||
|
||||
if (keyState->debounceCounter) {
|
||||
keyState->current = keyState->previous;
|
||||
} else if (keyState->previous != keyState->current) {
|
||||
} else if (!keyState->previous && keyState->current) {
|
||||
keyState->debounceCounter = KEY_DEBOUNCER_TIMEOUT_MSEC + 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user