]> git.parisson.com Git - piplayer.git/commitdiff
fix start when artefact on power channels : GPIO.RISING replaces GPIO.PUD_UP
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 12 Oct 2013 11:24:06 +0000 (13:24 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 12 Oct 2013 11:24:06 +0000 (13:24 +0200)
piplayer/controller.py
piplayer/player.py

index 8a3f4224bb8706b63cb768a726c5f19f22452041..bb5edc59f8bc500fc88193338b12d576c5e28150 100644 (file)
@@ -48,7 +48,7 @@ class GPIOController(Thread):
         import RPi.GPIO as GPIO
         self.server = GPIO
         self.server.setmode(self.server.BCM)
-        self.method = self.server.PUD_DOWN
+        self.method = self.server.RISING
         
     def add_channel_callback(self, channel, callback, bouncetime):
         self.server.setup(channel, self.server.IN, pull_up_down=self.method)
index c46c381d6a1ccc5667d5b5ee44a2244475c13889..82d4b448eeb64a793592031d9887d3225593f635 100644 (file)
@@ -184,5 +184,5 @@ class PiPlayer(object):
 
     def quit(self):
         self.mainloop.quit()
-        
-        
\ No newline at end of file
+