From d763d02e8e7a616d949ee0fec15a0b5701d7ad3d Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 11 Feb 2025 21:19:59 +0100 Subject: [PATCH] fixup! fix(core): fix stwlc38 deinitialization --- core/embed/sys/powerctl/stwlc38/stwlc38.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/embed/sys/powerctl/stwlc38/stwlc38.c b/core/embed/sys/powerctl/stwlc38/stwlc38.c index c7d6f196d1..2280787eaa 100644 --- a/core/embed/sys/powerctl/stwlc38/stwlc38.c +++ b/core/embed/sys/powerctl/stwlc38/stwlc38.c @@ -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)); }