]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Clarify docstring and add missing newline.
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 11 Mar 2022 02:01:28 +0000 (03:01 +0100)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 11 Mar 2022 02:01:28 +0000 (03:01 +0100)
src/adafruit_blinka/microcontroller/mcp2221/mcp2221.py

index b6ca9337d89cbf316b124b5a036c23608052b962..665be7f66faa4c9f4232452deb07b26bbe78ab9c 100644 (file)
@@ -3,6 +3,7 @@
 import os
 import time
 import atexit
+
 import hid
 
 # Here if you need it
@@ -62,7 +63,7 @@ class MCP2221:
             self.gpio_set_direction(pin, 1)  # set to INPUT
 
     def close(self):
-        """Close the device. Does nothing if the device is not open."""
+        """Close the hid device. Does nothing if the device is not open."""
         self._hid.close()
 
     def __del__(self):