diff options
author | yiancar <yiangosyiangou@cytanet.com.cy> | 2022-02-21 17:11:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 09:11:49 -0800 |
commit | 83b9483045d6a84d282e3a4e9d650e81f5368c53 (patch) | |
tree | 0d1b0fd45cf471755881001bbdf762ae35be1dba | |
parent | 0b21fbc37b784db576adfa46aea6ef7237c7b62e (diff) | |
download | qmk_firmware-83b9483045d6a84d282e3a4e9d650e81f5368c53.tar.gz qmk_firmware-83b9483045d6a84d282e3a4e9d650e81f5368c53.zip |
[keyboard] DC01 i2c timeout fix (#16392)
-rw-r--r-- | keyboards/dc01/left/config.h | 2 | ||||
-rw-r--r-- | keyboards/dc01/left/matrix.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/dc01/left/config.h b/keyboards/dc01/left/config.h index bc934e4a3..43883975c 100644 --- a/keyboards/dc01/left/config.h +++ b/keyboards/dc01/left/config.h | |||
@@ -55,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
55 | // #define BACKLIGHT_LEVELS 3 | 55 | // #define BACKLIGHT_LEVELS 3 |
56 | 56 | ||
57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
58 | #define DEBOUNCE 5 | 58 | #define DEBOUNCE 0 |
59 | 59 | ||
60 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 60 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
61 | //#define MATRIX_HAS_GHOST | 61 | //#define MATRIX_HAS_GHOST |
diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c index bf5aba849..40533beac 100644 --- a/keyboards/dc01/left/matrix.c +++ b/keyboards/dc01/left/matrix.c | |||
@@ -419,7 +419,7 @@ static void unselect_cols(void) | |||
419 | 419 | ||
420 | // Complete rows from other modules over i2c | 420 | // Complete rows from other modules over i2c |
421 | i2c_status_t i2c_transaction(uint8_t address, uint32_t mask, uint8_t col_offset) { | 421 | i2c_status_t i2c_transaction(uint8_t address, uint32_t mask, uint8_t col_offset) { |
422 | i2c_status_t status = i2c_start(address, 50); | 422 | i2c_status_t status = i2c_start(address, 5); |
423 | if (status < 0) { | 423 | if (status < 0) { |
424 | goto error; | 424 | goto error; |
425 | } | 425 | } |