修改bug

This commit is contained in:
jinggaoyang-68
2025-01-07 13:40:17 +08:00
parent 8e01b24dac
commit a5895c41b0

View File

@ -12,7 +12,7 @@ DEF_CDC_SYNC_MS = 1000 #电容同步间隔
DEF_GET_CAP_MS = (30) #读取电容间隔 DEF_GET_CAP_MS = (30) #读取电容间隔
DEF_PRO_CYC = 100 DEF_PRO_CYC = 100
DEF_MAX_FINGER_NUM = 2 # 需要连接的手指数量最大5个 DEF_MAX_FINGER_NUM = 5 # 需要连接的手指数量最大5个
# 定义一个全局的队列,用于线程间通信 # 定义一个全局的队列,用于线程间通信
capReadQueue = queue.Queue() capReadQueue = queue.Queue()
@ -169,6 +169,7 @@ class ClassCapRead:
for fingerIndex in range(0, len(self.fingers)): for fingerIndex in range(0, len(self.fingers)):
if self.fingers[fingerIndex].connect is True: if self.fingers[fingerIndex].connect is True:
self.fingers[fingerIndex].snsCmd.setSensorSync(0) self.fingers[fingerIndex].snsCmd.setSensorSync(0)
break
if self.connectStatus == EnumCh341ConnectStatus.CH341_CONNECT_CHECK: if self.connectStatus == EnumCh341ConnectStatus.CH341_CONNECT_CHECK:
capReadTime = time.time() capReadTime = time.time()