diff --git a/mopidy_touchscreen/gpio_inpput_manager.py b/mopidy_touchscreen/gpio_inpput_manager.py index 6b69e20..ff38f32 100644 --- a/mopidy_touchscreen/gpio_inpput_manager.py +++ b/mopidy_touchscreen/gpio_inpput_manager.py @@ -10,7 +10,7 @@ class GPIOManager(): def __init__(self): GPIO.setmode(GPIO.BCM) GPIO.setup(24, GPIO.IN, pull_up_down = GPIO.PUD_UP) - GPIO.add_event_detect(24, GPIO.BOTH, callback=self.rigth, bouncetime=30) + GPIO.add_event_detect(24, GPIO.BOTH, callback=self.right(), bouncetime=30) def right(self, channel): dict = {}