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:
parent
66b8e2a311
commit
d763d02e8e
@ -78,8 +78,11 @@ void stwlc38_deinit(void) {
|
||||
|
||||
stwlc38_enable(false);
|
||||
|
||||
i2c_bus_close(drv->i2c_bus);
|
||||
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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user