Skip to content

Commit

Permalink
Fix Issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicayciencia committed Apr 15, 2024
1 parent d549865 commit 5d5e4a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion EasyMCP2221/MCP2221.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ def send_cmd(self, buf):

# Read response
try:
r = self.hidhandler.read(PACKET_SIZE, 50)
# timeout 50 removed due to Issue
# https://github.com/electronicayciencia/EasyMCP2221/issues/7
r = self.hidhandler.read(PACKET_SIZE)
except OSError:
if retry < self.cmd_retries:
continue
Expand Down
12 changes: 8 additions & 4 deletions docs/source/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ Changelog

.. currentmodule:: EasyMCP2221.Device

Latest (unreleased)
-------------------

V1.7
--------

V1.7.2
~~~~~~

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

Misc:
* 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.

V1.7
--------

V1.7.1
~~~~~~
Expand Down

0 comments on commit 5d5e4a7

Please sign in to comment.