Change bouncetime to bounce_time

The parameter was already changed to bounce_time in the base
DigitalInputDevice class, but was overridden (incorrectly) in the
derived Button class.
This commit is contained in:
Dave Jones
2015-11-05 19:45:09 +00:00
parent 4fb5d3db04
commit 4615873b39

View File

@@ -402,8 +402,8 @@ class Button(DigitalInputDevice):
side of the switch, and ground to the other (the default `pull_up` value
is `True`).
"""
def __init__(self, pin=None, pull_up=True, bouncetime=None):
super(Button, self).__init__(pin, pull_up, bouncetime)
def __init__(self, pin=None, pull_up=True, bounce_time=None):
super(Button, self).__init__(pin, pull_up, bounce_time)
Button.is_pressed = Button.is_active
Button.when_pressed = Button.when_activated