From: caternuson Date: Sat, 8 Feb 2020 00:11:07 +0000 (-0800) Subject: MCP2221 delay tuning X-Git-Tag: 3.10.0~1^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/aa7b7549692fbf1798a2e3bfa195a8274d034341 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