From 5d5e4a766c8327daaf364f27119f3207257c1a40 Mon Sep 17 00:00:00 2001 From: Electronica y Ciencia Date: Mon, 15 Apr 2024 21:35:49 +0200 Subject: [PATCH] Fix Issue #7 --- EasyMCP2221/MCP2221.py | 4 +++- docs/source/history.rst | 12 ++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/EasyMCP2221/MCP2221.py b/EasyMCP2221/MCP2221.py index 1c7d01f..c4984e3 100644 --- a/EasyMCP2221/MCP2221.py +++ b/EasyMCP2221/MCP2221.py @@ -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 diff --git a/docs/source/history.rst b/docs/source/history.rst index cbe75e5..fe8a747 100644 --- a/docs/source/history.rst +++ b/docs/source/history.rst @@ -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`. @@ -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 ~~~~~~