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.
pull/273/head
Morgan Diepart 2024-05-09 12:24:25 +02:00 zatwierdzone przez Silvano Seva
rodzic 220d4d2ef4
commit e50b8ce80c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)
{