Browse Source

Tweak reset timing

pull/22181/head
Drashna Jael're 2 months ago
parent
commit
d9a54c44d5
No known key found for this signature in database GPG Key ID: DBA1FD3A860D1B11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      keyboards/zsa/voyager/matrix.c

+ 1
- 1
keyboards/zsa/voyager/matrix.c View File

@ -64,7 +64,7 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
bool changed = false;
// Attempt to reset the mcp23018 if it's not initialized
if (mcp23018_errors) {
if (++mcp23018_reset_loop > 0x7FFF) {
if (++mcp23018_reset_loop > 0x1FFF) {
if (io_expander_ready()) {
// If we managed to initialize the mcp23018 - we need to reinitialize the matrix / layer state. During an electric discharge the i2c peripherals might be in a weird state. Giving a delay and resetting the MCU allows to recover from this.
wait_ms(200);


Loading…
Cancel
Save