From e50b8ce80c3c86bdb52d291ab507657270401261 Mon Sep 17 00:00:00 2001 From: Morgan Diepart Date: Thu, 9 May 2024 12:24:25 +0200 Subject: [PATCH] Module17: keyboard: do not enable SMBus timeout while using the I2C mode Enabling SMBus timeout in the capacitive touch sensor and not in the MCU would cause the CTS to reset and the MCU expecting the transaction to keep going, locking-up the device. Timeout should be re-enabled when SMBus will be implemented. --- platform/drivers/keyboard/cap1206.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/drivers/keyboard/cap1206.c b/platform/drivers/keyboard/cap1206.c index bd137772..7f683916 100644 --- a/platform/drivers/keyboard/cap1206.c +++ b/platform/drivers/keyboard/cap1206.c @@ -27,7 +27,7 @@ int cap1206_init(const struct i2cDevice *i2c) // Config 1 register, enable SMB timeout data[0] = CAP1206_CONFIG_1; - data[1] = CAP1206_CONFIG_1_TIMEOUT | CAP1206_CONFIG_1_DIS_DIG_NOISE; + data[1] = /*CAP1206_CONFIG_1_TIMEOUT |*/ CAP1206_CONFIG_1_DIS_DIG_NOISE; ret = i2c_write(i2c, CAP1206_ADDR, data, 2, true); if(ret < 0) {