优化n9睡眠佩戴检测
authorpenglei <1624952103@qq.com>
Wed, 22 Oct 2025 01:43:50 +0000 (09:43 +0800)
committerpenglei <1624952103@qq.com>
Wed, 22 Oct 2025 01:43:50 +0000 (09:43 +0800)
code/sdk/zhihui/drivers/ppg/pah8009/sensor/pah800x_main.c

index fe14bd1..1396f08 100644 (file)
@@ -1897,11 +1897,11 @@ void pah8009_control(char *mode,uint8_t enable)
 
         pah_sensor_stop();
         work_mode = 0;
-        if(uapi_dev_runtime_get_sleep_monitoring_status() && uapi_dev_runtime_get_hrs_passivity_flag())
-        {
-            pah8009_wearstatus_update(history_wear_status);   
-            uapi_dev_runtime_set_hrs_passivity(0); 
-        }
+        // if(uapi_dev_runtime_get_sleep_monitoring_status() && uapi_dev_runtime_get_hrs_passivity_flag())
+        // {
+        //     pah8009_wearstatus_update(history_wear_status);   
+        //     uapi_dev_runtime_set_hrs_passivity(0); 
+        // }
     }
     else
     {