From 259549c238179782b5ec8028ededd067b4e9f01d Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Tue, 26 Mar 2024 19:54:44 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=963507=E5=81=9C=E6=AD=A2?= =?utf8?q?=E6=B5=81=E7=A8=8B=EF=BC=8C=E4=BF=9D=E8=AF=81=E5=85=B6=E8=83=BD?= =?utf8?q?=E6=AD=A3=E5=B8=B8=E4=BC=91=E7=9C=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c b/code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c index d466c8e70..965283c47 100644 --- a/code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c +++ b/code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c @@ -1,4 +1,4 @@ -/** +/**,. * Copyright (c) @CompanyNameMagicTag 2023-2023. All rights reserved. \n * * Description: Button driver source file \n @@ -97,7 +97,7 @@ void crown_timer_creat(void) void crown_timer_start(void) { if(osTimerIsRunning(g_hx3507_timer)==0) - osTimerStart(g_hx3507_timer, 50); + osTimerStart(g_hx3507_timer, 40); } /** @@ -518,6 +518,7 @@ void crown_stop(void) { #ifdef MOT_NO_USE_MODE crown_timer_stop(); + LOS_Mdelay(50); crown_write_reg(Config_St,0x89); // power down, power down 后芯片功耗9uA LOS_Mdelay(20); TYHX_LOG("[tyhx_crown_stop]\r\n"); -- 2.17.1