Skip to content

Commit 45d9edb

Browse files
committed
Fix any_button_pressed
1 parent 77d7aa4 commit 45d9edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_funhouse/peripherals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def any_button_pressed(self) -> bool:
161161
"""
162162
Return whether any button is pressed
163163
"""
164-
return True in [button.value for button in enumerate(self._buttons)]
164+
return True in [button.value for (i, button) in enumerate(self._buttons)]
165165

166166
@property
167167
def captouch6(self) -> bool:

0 commit comments

Comments
 (0)