Skip to content

Commit

Permalink
Set motor timeout to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
robin7331 committed Mar 14, 2023
1 parent c27c034 commit 9e1a504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import utime

class Motor:
def __init__(self, motorPin, freq=10000, timeout=300000, on_timeout=None):
def __init__(self, motorPin, freq=10000, timeout=60000, on_timeout=None):
self.pwm = PWM(Pin(motorPin))
self.pwm.freq(freq)
self.pwm_duty = 0
Expand Down

0 comments on commit 9e1a504

Please sign in to comment.