From: Limor "Ladyada" Fried Date: Sat, 8 Feb 2020 00:30:40 +0000 (-0500) Subject: Merge pull request #248 from caternuson/mcp2221_hid_tweak X-Git-Tag: 3.10.0~1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/3e2e9b6def80f8868ae2c04a2445c74f7dbae924?hp=bd7b612b3f59a62c75a3c884bd2c9cbf8cb9fbae Merge pull request #248 from caternuson/mcp2221_hid_tweak MCP2221 delay tuning --- diff --git a/src/adafruit_blinka/microcontroller/mcp2221/mcp2221.py b/src/adafruit_blinka/microcontroller/mcp2221/mcp2221.py index 3cfb46b..0cddf42 100644 --- a/src/adafruit_blinka/microcontroller/mcp2221/mcp2221.py +++ b/src/adafruit_blinka/microcontroller/mcp2221/mcp2221.py @@ -2,10 +2,10 @@ import os import time import hid -# Small values seem to help on some Windows setups +# Here if you need it MCP2221_HID_DELAY = float(os.environ.get('BLINKA_MCP2221_HID_DELAY', 0)) -# Windows also seems to want some time after a reset -MCP2221_RESET_DELAY = float(os.environ.get('BLINKA_MCP2221_RESET_DELAY', 0.1)) +# Use to set delay between reset and device reopen +MCP2221_RESET_DELAY = float(os.environ.get('BLINKA_MCP2221_RESET_DELAY', 0.5)) # from the C driver # http://ww1.microchip.com/downloads/en/DeviceDoc/mcp2221_0_1.tar.gz