From 83b9483045d6a84d282e3a4e9d650e81f5368c53 Mon Sep 17 00:00:00 2001 From: yiancar Date: Mon, 21 Feb 2022 17:11:49 +0000 Subject: [keyboard] DC01 i2c timeout fix (#16392) --- keyboards/dc01/left/config.h | 2 +- keyboards/dc01/left/matrix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'keyboards/dc01') diff --git a/keyboards/dc01/left/config.h b/keyboards/dc01/left/config.h index bc934e4a39..43883975c4 100644 --- a/keyboards/dc01/left/config.h +++ b/keyboards/dc01/left/config.h @@ -55,7 +55,7 @@ along with this program. If not, see . // #define BACKLIGHT_LEVELS 3 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 +#define DEBOUNCE 0 /* define if matrix has ghost (lacks anti-ghosting diodes) */ //#define MATRIX_HAS_GHOST diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c index bf5aba8497..40533beac4 100644 --- a/keyboards/dc01/left/matrix.c +++ b/keyboards/dc01/left/matrix.c @@ -419,7 +419,7 @@ static void unselect_cols(void) // Complete rows from other modules over i2c i2c_status_t i2c_transaction(uint8_t address, uint32_t mask, uint8_t col_offset) { - i2c_status_t status = i2c_start(address, 50); + i2c_status_t status = i2c_start(address, 5); if (status < 0) { goto error; } -- cgit v1.2.1