Skip to content

Commit

Permalink
double debounce time
Browse files Browse the repository at this point in the history
This does not seem to have any noticeable effect on input latency and takes care
of aging key switch modules without having to painstakenly re-solder them.
  • Loading branch information
stapelberg committed Apr 18, 2019
1 parent 5587331 commit 36f3df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/kinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static debounce_status_t debounce[15][7];

// The Cherry MX datasheet specifies 5ms, but that seems overly optimistic, at
// least for key switches which have seen a few years of usage.
static const uint32_t keyswitch_debounce_time = 10 /* ms */;
static const uint32_t keyswitch_debounce_time = 20 /* ms */;

static bool debounce_tick(const int row, const int col, const bool pressed) {
debounce_status_t *status = &(debounce[row][col]);
Expand Down

0 comments on commit 36f3df7

Please sign in to comment.