From 74186f20a16bb63bd692ec8c248023a9a6f87851 Mon Sep 17 00:00:00 2001 From: elric91 Date: Sat, 9 Oct 2021 17:35:19 +0200 Subject: [PATCH] typos --- kmk/modules/encoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmk/modules/encoder.py b/kmk/modules/encoder.py index 0309778..0de1cf4 100644 --- a/kmk/modules/encoder.py +++ b/kmk/modules/encoder.py @@ -1,8 +1,8 @@ # See docs/encoder.md for how to use import digitalio - from supervisor import ticks_ms + from kmk.modules import Module # NB : not using rotaryio as it requires the pins to be consecutive @@ -74,7 +74,7 @@ class Encoder: self._state = new_state # Velocity - if VELOCITY_MODE: + if self.VELOCITY_MODE: new_timestamp = ticks_ms() self._velocity = new_timestamp - self._timestamp self._timestamp = new_timestamp