]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/mcp2221/mcp2221.py
Fixed pylint to check all files and linted
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / mcp2221 / mcp2221.py
index 619c70e7da879d1b4eec0858e65f7c8701db92d4..a4a1d990a58ecd8419873c81d2cd4b62403e6a5d 100644 (file)
@@ -76,8 +76,6 @@ class MCP2221:
     # ----------------------------------------------------------------
     def gp_get_mode(self, pin):
         """Get Current Pin Mode"""
-        val = self._hid_xfer(b"\x61")[22 + pin]
-        print("0b{:08b}".format(val))
         return self._hid_xfer(b"\x61")[22 + pin] & 0x07
 
     def gp_set_mode(self, pin, mode):
@@ -270,7 +268,7 @@ class MCP2221:
 
         # and now the read part
         while (end - start) > 0:
-            for retry in range(MCP2221_RETRY_MAX):
+            for _ in range(MCP2221_RETRY_MAX):
                 # the actual read
                 resp = self._hid_xfer(b"\x40")
                 # check for success