]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
fixes after heads up : https://github.com/adafruit/Adafruit_Blinka/pull/678#issuecomm...
authorJan Volckaert <janvolck@gmail.com>
Wed, 19 Apr 2023 19:07:20 +0000 (21:07 +0200)
committerJan Volckaert <janvolck@gmail.com>
Wed, 19 Apr 2023 19:07:20 +0000 (21:07 +0200)
src/adafruit_blinka/microcontroller/amlogic/meson_g12_common/pulseio/PulseIn.py
src/pulseio.py

index 7d6ad9c324d6fdb05aee30bbb8c1178c241b4aab..ae82f1cc38933ed648fa1e26b75cc8b65065473a 100644 (file)
@@ -38,14 +38,14 @@ class PulseIn:
         a given max length. When it is active, new pulse lengths are
         added to the end of the list. When there is no more room
         (len() == maxlen) the oldest pulse length is removed to make room."""
-                
+
         if isinstance(pin.id, tuple):
             self._pin = str(pin.id[1])
             self._chip = "gpiochip{}".format(pin.id[0])
         else:
             self._pin = str(pin.id)
             self._chip = "gpiochip0"
-        
+
         self._maxlen = maxlen
         self._idle_state = idle_state
         self._queue_key = random.randint(1, 9999)
index 2742e94641546e173c06a4f343a5f8c430b9d6da..c6aa49e78e1023aee19185b89cff83f5758026ef 100644 (file)
@@ -21,6 +21,8 @@ if detector.board.any_raspberry_pi:
 elif "sphinx" in sys.modules:
     pass
 elif detector.board.any_odroid_40_pin:
-    from adafruit_blinka.microcontroller.amlogic.meson_g12_common.pulseio.PulseIn import PulseIn
+    from adafruit_blinka.microcontroller.amlogic.meson_g12_common.pulseio.PulseIn import (
+        PulseIn,
+    )
 else:
     raise NotImplementedError("pulseio not supported for this board.")