Skip to content

Commit 5d5e4a7

Browse files
Fix Issue #7
1 parent d549865 commit 5d5e4a7

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

EasyMCP2221/MCP2221.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ def send_cmd(self, buf):
204204

205205
# Read response
206206
try:
207-
r = self.hidhandler.read(PACKET_SIZE, 50)
207+
# timeout 50 removed due to Issue
208+
# https://github.com/electronicayciencia/EasyMCP2221/issues/7
209+
r = self.hidhandler.read(PACKET_SIZE)
208210
except OSError:
209211
if retry < self.cmd_retries:
210212
continue

docs/source/history.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ Changelog
33

44
.. currentmodule:: EasyMCP2221.Device
55

6-
Latest (unreleased)
7-
-------------------
6+
7+
V1.7
8+
--------
9+
10+
V1.7.2
11+
~~~~~~
812

913
ADC/DAC:
1014
* Added ``norm`` parameter to :func:`ADC_read` and :func:`DAC_write`.
@@ -13,9 +17,9 @@ ADC/DAC:
1317
I2C:
1418
* In I2C Slave Helper class, *register bytes* and *register byte order* can be indicated in the class constructor.
1519

20+
Misc:
21+
* Removed timeout parameter on USB HID read, introduced in V1.6.1. This parameter causes a delay in some systems (https://github.com/electronicayciencia/EasyMCP2221/issues/7) due to unknown reasons. The default timeout is now 1000 ms.
1622

17-
V1.7
18-
--------
1923

2024
V1.7.1
2125
~~~~~~

0 commit comments

Comments
 (0)