Auto commit at 2025-06-14 13:02:31

This commit is contained in:
cxh 2025-06-14 13:02:31 +08:00
parent b56d7e2f98
commit 64e7951fb4

View File

@ -129,7 +129,7 @@ void CANDriver::receiveThreadFunc()
ULONG len = 0; ULONG len = 0;
{ {
std::lock_guard<std::mutex> lock(canMutex); // 加锁 std::lock_guard<std::mutex> lock(canMutex); // 加锁
len = VCI_Receive(deviceType, deviceIndex, channelIndex, rec, 100, 10); len = VCI_Receive(deviceType, deviceIndex, channelIndex, rec, maxFrames, 10);
} }
if (len == 0) if (len == 0)