Skip to content

Commit

Permalink
document delay fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Apr 28, 2024
1 parent 75ceff1 commit 137aeba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/smk/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ inline void process_key_state(uint8_t row, uint8_t col, bool pressed)
{
uint16_t qcode = keymaps[0][row][col];

// FIXME: this debug statement causes a delay which has a sideffect of fixing
// a sticky-key problem for the last row of keys (report is unsent on key-up)
dprintf("KEY: 0x%04x %s\r\n", qcode, pressed ? "UP" : "DOWN");

if (IS_QK_MOMENTARY(qcode)) {
Expand Down Expand Up @@ -108,7 +110,7 @@ inline uint8_t matrix_task()
matrix_changed |= matrix_previous[col] ^ matrix_get_col(col);
}

// Short-circuit the complete matrix processing if it is not necessary
// short-circuit the complete matrix processing if it is not necessary
if (!matrix_changed) {
matrix_updated = false;
return matrix_changed;
Expand Down

0 comments on commit 137aeba

Please sign in to comment.