1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-08 15:48:08 +00:00

fix(core): use correct size in STMPE811 touch_init()

[no changelog]
This commit is contained in:
Roman Zeyde 2025-06-11 17:26:13 +03:00 committed by Roman Zeyde
parent 7f5a8b29c6
commit acbace7c3e

View File

@ -49,7 +49,7 @@ secbool touch_init(void) {
return sectrue; return sectrue;
} }
memset(drv, 0, sizeof(drv)); memset(drv, 0, sizeof(*drv));
drv->i2c_bus = i2c_bus_open(TOUCH_I2C_INSTANCE); drv->i2c_bus = i2c_bus_open(TOUCH_I2C_INSTANCE);