From 19a012432b71a8290a938818f40c9ffb77c457aa Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Thu, 18 Apr 2024 10:10:00 +0200 Subject: [PATCH] i2c fix so that haptics work --- core/embed/trezorhal/stm32u5/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/trezorhal/stm32u5/i2c.c b/core/embed/trezorhal/stm32u5/i2c.c index e66a024a4..2a81cd08c 100644 --- a/core/embed/trezorhal/stm32u5/i2c.c +++ b/core/embed/trezorhal/stm32u5/i2c.c @@ -76,7 +76,7 @@ void i2c_init_instance(uint16_t idx, i2c_instance_t *instance) { // configure CTP I2C SCL and SDA GPIO lines GPIO_InitStructure.Mode = GPIO_MODE_AF_OD; - GPIO_InitStructure.Pull = GPIO_NOPULL; + GPIO_InitStructure.Pull = GPIO_PULLUP; GPIO_InitStructure.Speed = GPIO_SPEED_FREQ_LOW; // I2C is a KHz bus and low speed is still good into // the low MHz