优化活体检测处理 3070/1 3070/head 3084/target/1
authorpenglei <1624952103@qq.com>
Tue, 13 Jan 2026 03:51:44 +0000 (11:51 +0800)
committerpenglei <1624952103@qq.com>
Tue, 13 Jan 2026 03:51:44 +0000 (11:51 +0800)
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c

index ef36bd7..7bc7cc4 100644 (file)
@@ -1149,6 +1149,19 @@ void cywee_wearstatus_update(int wearstatus)
                 cywee_inactivity_mode_change(INACTIVITY_MODE_SEDENTARY_AND_NAP);
             }
         }
+        else if(uapi_dev_runtime_get_sleep_monitoring_status())
+        {
+            if(uapi_dev_runtime_get_sleep_status())
+            {
+                uapi_dev_runtime_set_absolute_static_status(1);
+                cywee_get_sleep_data(1);
+            }
+            else
+            {
+                cywee_inactivity_mode_change(INACTIVITY_MODE_NOTHING);
+                cywee_inactivity_mode_change(INACTIVITY_MODE_SLEEPING);
+            }
+        }
 
         wearstatus = 0;
     }