1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-13 16:12:18 +00:00

fixup! fix(core): fix stwlc38 deinitialization

This commit is contained in:
tychovrahe 2025-02-11 21:19:59 +01:00
parent 66b8e2a311
commit d763d02e8e

View File

@ -78,8 +78,11 @@ void stwlc38_deinit(void) {
stwlc38_enable(false); stwlc38_enable(false);
i2c_bus_close(drv->i2c_bus);
systimer_delete(drv->timer); systimer_delete(drv->timer);
i2c_bus_close(drv->i2c_bus);
HAL_GPIO_DeInit(STWLC38_INT_PORT, STWLC38_INT_PIN);
HAL_GPIO_DeInit(STWLC37_ENB_PORT, STWLC38_ENB_PIN);
memset(drv, 0, sizeof(stwlc38_driver_t)); memset(drv, 0, sizeof(stwlc38_driver_t));
} }