运动不开启表冠
author1624952103 <pl@DESKTOP-EN9LKR5.localdomain>
Thu, 29 Jan 2026 04:22:58 +0000 (12:22 +0800)
committer1624952103 <pl@DESKTOP-EN9LKR5.localdomain>
Thu, 29 Jan 2026 04:22:58 +0000 (12:22 +0800)
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c
code/sdk/zhihui/services/factorytest_service/factorytest_protocol.c

index 0791bd9..1d5e036 100644 (file)
@@ -1012,7 +1012,9 @@ void hx3508_int_callback(pin_t pin, uintptr_t param)
 {
     // printf("hx3508_int_callback %d 0x%X\n",pin,param);
     uapi_gpio_clear_interrupt(pin);
-    do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_ROTARY_OPEN,NULL,0);
+
+    if(!uapi_dev_runtime_get_train_status())
+        do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_ROTARY_OPEN,NULL,0);
 }
 
 void hx3508_open(void)
index 19c55ff..31525d4 100644 (file)
@@ -394,7 +394,7 @@ void factorytest_start_aging_test(void)
     aging_start_flag = 1;\r
 \r
     memset(&aging_t, 0, sizeof(ble_aging_t));\r
-    aging_t.target_time = 6 * 60 * 60; //老化时间6小时\r
+    aging_t.target_time = 3 * 60 * 60; //老化时间6小时\r
     aging_time = aging_t.target_time;\r
     aging_t.left_time = aging_time;\r
     do_custom_fileoperate_service_check_msg(CUSTOM_FILEOPERATE_MSG_TYPE_AGING_DATA_SAVE, NULL, 0);\r