From: penglei <1624952103@qq.com> Date: Wed, 12 Nov 2025 09:28:41 +0000 (+0800) Subject: 优化hx3508效果(补) X-Git-Tag: V1.0.9_20251128_194606_LN~76 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2728%2Fhead;p=mirrors%2FFD230.git 优化hx3508效果(补) --- diff --git a/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c b/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c index dc9451347..15684058f 100644 --- a/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c +++ b/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c @@ -515,6 +515,7 @@ void ots_data_handler(void *p_event_data, uint16_t event_size) // printf("hx3508 enter int mode\n"); ots_timer_stop(); // 关闭定时器 uapi_pin_set_ie(INT_PIN,HAL_PIO_IE_ENBALE); + timer_cnt = 0; } if (stand_still == 0) { diff --git a/code/sdk/zhihui/drivers/rotary_encoder/mixo/mixo_ots_driver.c b/code/sdk/zhihui/drivers/rotary_encoder/mixo/mixo_ots_driver.c index 2364c3486..12e00b245 100644 --- a/code/sdk/zhihui/drivers/rotary_encoder/mixo/mixo_ots_driver.c +++ b/code/sdk/zhihui/drivers/rotary_encoder/mixo/mixo_ots_driver.c @@ -104,6 +104,7 @@ void mixo_ots_timer_callback(void) * 必须放在 external_int_init 之前去做 * 否则可能造成功耗异常的问题 */ + timer_cnt = 0; mixo_ots_forced_clear_int(); // 强制拉高MOT脚 int_mode = 1; }