Skip to content

Commit

Permalink
Fixed a bug with pi_gpio input driver
Browse files Browse the repository at this point in the history
  • Loading branch information
CRImier committed Jan 22, 2017
1 parent 18d2197 commit 3dcc062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/drivers/pi_gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def __init__(self, button_pins=[], **kwargs):
* ``debug``: enables printing button press and release events when set to True
"""
self.button_pins = button_pins
InputSkeleton.__init__(self, **kwargs)
self.init_hw()
InputSkeleton.__init__(self, **kwargs)

def init_hw(self):
import RPi.GPIO as GPIO #Doing that because I couldn't mock it for ReadTheDocs
Expand Down

0 comments on commit 3dcc062

Please sign in to comment.