From b5e642a8e8d171ba430a7cc4236b42f0cafa8c87 Mon Sep 17 00:00:00 2001 From: Yang Jiyun Date: Mon, 23 Mar 2026 17:25:08 +0800 Subject: [PATCH] fw/drivers/hrm/gh3x2x: initialize the reset and INT pin status when system bootup GH3x2x would cause unstable current leakage if reset pin is high, force it to low to makesure GH3x2x at low power status when initialization. Signed-off-by: Yang Jiyun --- src/fw/drivers/hrm/gh3x2x/gh3x2x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fw/drivers/hrm/gh3x2x/gh3x2x.c b/src/fw/drivers/hrm/gh3x2x/gh3x2x.c index 9089e5c49..3faed9c3e 100644 --- a/src/fw/drivers/hrm/gh3x2x/gh3x2x.c +++ b/src/fw/drivers/hrm/gh3x2x/gh3x2x.c @@ -442,10 +442,10 @@ void hrm_init(HRMDevice *dev) { PBL_LOG_ERR("GH3X2X failed to initialize"); return; } -#else +#endif + gh3026_reset_pin_ctrl(0); gpio_input_init_pull_up_down(&dev->int_input, GPIO_PuPd_DOWN); -#endif dev->state->is_wear = false; dev->state->initialized = true;