Skip to content

Commit 3011e3f

Browse files
authored
Merge pull request #92 from twinters007/bool
Add __bool__ redirect to buttondebounce
2 parents 9172316 + 3be25f8 commit 3011e3f

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)