From 4615873b3916798b263734e1a5d5d65195823de0 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Thu, 5 Nov 2015 19:45:09 +0000 Subject: [PATCH] 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. --- gpiozero/input_devices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpiozero/input_devices.py b/gpiozero/input_devices.py index cbff675..c365881 100644 --- a/gpiozero/input_devices.py +++ b/gpiozero/input_devices.py @@ -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