Skip to content

Commit 3be25f8

Browse files
committed
Add __bool__ redirect to buttondebounce
1 parent d2e18c1 commit 3be25f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

robotpy_ext/control/button_debouncer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ def get(self):
3333
if (now-self.latest) > self.debounce_period:
3434
self.latest = now
3535
return True
36-
return False
36+
return False
37+
38+
__bool__ = get

0 commit comments

Comments
 (0)