修复编译问题
authorpenglei <1624952103@qq.com>
Thu, 2 Jan 2025 13:16:06 +0000 (21:16 +0800)
committerpenglei <1624952103@qq.com>
Thu, 2 Jan 2025 13:16:06 +0000 (21:16 +0800)
code/sdk/zhihui/services/factorytest_service/factorytest_protocol.c

index 6410214..37554b3 100644 (file)
@@ -1,8 +1,8 @@
 /*\r
  * @Author: penglei 1624952103@qq.com\r
  * @Date: 2024-06-17 14:31:08\r
- * @LastEditors: SnickerSun snickersun@163.com\r
- * @LastEditTime: 2024-12-29 20:45:38\r
+ * @LastEditors: penglei 1624952103@qq.com\r
+ * @LastEditTime: 2024-12-31 15:39:53\r
  * @FilePath: /FD230/code/sdk/application/wearable/service/factorytest_service/factorytest_protocol.c\r
  * @Description: \r
  * \r
@@ -20,7 +20,7 @@
 #include "lcd_private.h"\r
 #include "app_at_process.h"\r
 #include "cywee_hal.h"\r
-#include "hx3695.h"\r
+\r
 #include "ppg_service.h"\r
 #include "button_porting.h"\r
 #ifdef SUPPORT_CAT1_SERVICE\r
@@ -28,6 +28,7 @@
 #include "cat1_server.h"\r
 #endif\r
 #ifdef PPG_HX3695\r
+#include "hx3695.h"\r
 #include "hx3695_hrs_agc.h"\r
 #include "hx3695_spo2_agc.h"\r
 #include "hx3695_factory_test.h"\r
@@ -270,12 +271,14 @@ void aging_task(void)
 \r
 /*********************表冠 老化测试*****************************/\r
         //读crown ID\r
+#ifdef ROTARYENCODER_HX3507\r
         PRINT("crown_read_reg : %X \n",crown_read_reg(0x00));\r
         if(!(crown_read_reg(0x00) == 0x30))\r
         {\r
             aging_t.crown_error++;\r
             aging_t.fail_num++;\r
         }\r
+#endif\r
         PRINT("表冠 失败次数 : %d \r\n",aging_t.crown_error);\r
 \r
 \r