添加电容同步采集功能

This commit is contained in:
jinggaoyang-68
2025-01-07 13:35:29 +08:00
parent b5455a269c
commit 8e01b24dac
2 changed files with 21 additions and 0 deletions

View File

@ -166,6 +166,9 @@ class ClassCapRead:
if connectedSensorCnt > 1 and (time.time() - self.syncTimer) > DEF_CDC_SYNC_MS:
self.syncTimer = time.time()
self.set_sensor_enable(connectedSensorChan)
for fingerIndex in range(0, len(self.fingers)):
if self.fingers[fingerIndex].connect is True:
self.fingers[fingerIndex].snsCmd.setSensorSync(0)
if self.connectStatus == EnumCh341ConnectStatus.CH341_CONNECT_CHECK:
capReadTime = time.time()