9and3r 11 years ago
parent
commit
f15ce5aaa6
1 changed files with 3 additions and 3 deletions
  1. 3 3
      mopidy_touchscreen/gpio_inpput_manager.py

+ 3 - 3
mopidy_touchscreen/gpio_inpput_manager.py

@@ -9,8 +9,8 @@ class GPIOManager():
     def __init__(self):
         GPIO.setmode(GPIO.BCM)
         GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_DOWN)
-        GPIO.add_event_detect(23, GPIO.RISING, callback=self.printFunction, bouncetime=300)
+        GPIO.add_event_detect(23, GPIO.RISING, callback=printFunction, bouncetime=300)
 
 
-    def printFunction(self):
-        logger.error("Sakatu da")
+def printFunction():
+    logger.error("Sakatu da")