Skip to content

Commit f22a3e3

Browse files
fryfrogWasabiFan
authored andcommitted
Update PS3 controller sample code for new releases (ev3dev#189)
Use run-direct mode to keep compatibility with newer driver versions
1 parent 97ce568 commit f22a3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/using-ps3-sixaxis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class MotorThread(threading.Thread):
7878
def run(self):
7979
print "Engine running!"
8080
while running:
81-
self.motor.run_forever(duty_cycle_sp=speed)
81+
self.motor.run_direct(duty_cycle_sp=speed)
8282

8383
self.motor.stop()
8484

0 commit comments

Comments
 (0)