From 5d4e9b5d7bb21b1f93b026f662b60bddc5d17632 Mon Sep 17 00:00:00 2001 From: Gordon Jamieson Date: Thu, 28 Sep 2023 13:37:07 +0100 Subject: [PATCH] Prior commit failed test. Audio Mute was assigned to the encoder push button action and was activating upon keyboard USB insertion without user interaction. Fixed this error. --- kmk/modules/encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmk/modules/encoder.py b/kmk/modules/encoder.py index 9a2059329..95bb6bd7c 100755 --- a/kmk/modules/encoder.py +++ b/kmk/modules/encoder.py @@ -159,7 +159,7 @@ def prepare_pin(self): def get_value(self): io = self.io result = io.value - if digitalio.Pull.UP == io.pull: + if digitalio.Pull.UP != io.pull: result = not result return result