From 989919a73c5ebd46368991b6c3ff6959e32490b6 Mon Sep 17 00:00:00 2001
From: tao_z <tzj0429@163.com>
Date: Tue, 23 Aug 2022 22:06:32 +0800
Subject: [PATCH] 完善did读取显示

---
 USBCAN.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/USBCAN.py b/USBCAN.py
index 42ee2d2..e197752 100644
--- a/USBCAN.py
+++ b/USBCAN.py
@@ -420,7 +420,7 @@
         USBCAN_DLL.VCI_Transmit(self.device, self.device_index, self.channel,
                                 byref(raw_message), 1)
 
-    def Receive(self, len=10, timeout=None):
+    def Receive(self, len=1, timeout=None):
         raw_message = (VCI_CAN_OBJ * len)()
 
         timeout = -1 if timeout is None else c_int(timeout * 1000)

--
Gitblit v1.8.0