3695底层驱动添加注释 689/4 689/head
authorpenglei <1624952103@qq.com>
Tue, 13 Aug 2024 13:12:05 +0000 (21:12 +0800)
committerpenglei <1624952103@qq.com>
Tue, 13 Aug 2024 13:12:05 +0000 (21:12 +0800)
code/sdk/drivers/peripheral/ppg/hx3695/hx3695.c

index e222917..52e7e85 100644 (file)
@@ -2799,7 +2799,9 @@ void hx3695_hrs_ppg_Int_handle(void)
        // result.ir_data_final = hrs_s_dat.ir_data[0];\r
        // hx3695_factory_test_process(NULL, APP_FACTORY_TEST_HR_START, &result);\r
     //PRINT("*count : %d \r\n",*count);\r
-    if(*count < 7 || *count > 9)\r
+\r
+    //count7-9 为捕捉到的绿光值正常数据数量范围,不在此范围,心率数据不准,直接返回.\r
+    if(*count < 7 || *count > 9) \r
     {\r
         return;\r
     }\r
@@ -3259,6 +3261,8 @@ void hx3695_spo2_ppg_Int_handle(void)
   \r
   /*屏蔽*/\r
     //("*count[%d] \r\n",*count);\r
+\r
+    //count7-9 为捕捉到的红光值正常数据数量范围,不在此范围,血氧数据不准,直接返回.\r
     if(*count < 7 || *count > 9)\r
     {\r
         return;\r