运动关闭活体 3211/1 3211/head 3212/target/1
author1624952103 <pl@DESKTOP-EN9LKR5.localdomain>
Wed, 11 Feb 2026 09:21:04 +0000 (17:21 +0800)
committer1624952103 <pl@DESKTOP-EN9LKR5.localdomain>
Wed, 11 Feb 2026 09:21:04 +0000 (17:21 +0800)
code/sdk/zhihui/drivers/ppg/hx3695/hx3695.c

index 4b9cf59..f2e3bd4 100644 (file)
@@ -1217,10 +1217,14 @@ bool hx3695_init(WORK_MODE_T mode)
     switch (work_mode_flag)\r
     {\r
                case HRS_MODE:\r
-        if(!uapi_dev_runtime_get_train_status())\r
-        {\r
-            tyhx_hrs_set_living(1, 15, 30);\r
-        }\r
+            if(uapi_dev_runtime_get_train_status())\r
+            {\r
+                tyhx_hrs_set_living(0, 0, 0);\r
+            }\r
+            else\r
+            {\r
+                tyhx_hrs_set_living(1, 15, 30);\r
+            }\r
                        hx3695_hrs_enable(&ppg_sensor_data);\r
                        break;\r
         \r