修改3508中断频率 3323/1
authorxue <2144439972@qq.com>
Wed, 1 Apr 2026 09:25:55 +0000 (17:25 +0800)
committerxue <2144439972@qq.com>
Wed, 1 Apr 2026 09:25:55 +0000 (17:25 +0800)
code/sdk/zhihui/drivers/cywee/service/cywee_service.c
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c

index 94736da..243b7ee 100644 (file)
@@ -331,7 +331,8 @@ static void cywee_service_check_task(void const *arg)
 
             case CYWEE_SERVICE_CMD_NAP_MODE:
                 cywee_inactivity_mode_change(INACTIVITY_MODE_NAP);
-                
+            break;
+
             case CYWEE_SERVICE_CMD_NAP_SEDENTARY_MODE:
                 cywee_inactivity_mode_change(INACTIVITY_MODE_SEDENTARY_AND_NAP);
             break;
index 211452b..ec703ec 100644 (file)
@@ -243,7 +243,7 @@ void ots_timer_start(void)
     if(ots_timer_running == false && g_hx3508_timer)
     {
         // app_timer_start(g_hx3508_timer, APP_TIMER_TICKS(50), NULL);//定义为50ms定时器间隔
-        int ret = osTimerStart(g_hx3508_timer,20);
+        int ret = osTimerStart(g_hx3508_timer,50);
         // printf("ret:%d\n",ret);
         ots_timer_running = true;
     }