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