We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fde34 commit 589abd5Copy full SHA for 589abd5
m5stack/libs/unit/encoder8.py
@@ -181,7 +181,7 @@ def get_button_status(self, channel: int = 1) -> bool:
181
channel >= self._ENCODER_BUTTON_START_REG and channel <= self._ENCODER_BUTTON_END_REG
182
):
183
channel = self._ENCODER_BUTTON_START_REG
184
- return bool(self.read_reg_data(channel, 1)[0])
+ return self.read_reg_data(channel, 1)[0] == 0
185
186
def get_switch_status(self) -> bool:
187
"""
0 commit comments