fix limit bug in motor code

This commit is contained in:
shrkey
2016-10-04 23:14:45 +01:00
parent 50c30e6335
commit 5b5c543b25

View File

@@ -63,7 +63,7 @@ class dw_Motor:
def setMotorSpeed(self, value):
# Check for PWM values
if(value > 1000) and (value < 2000):
if(value >= 1000) and (value <= 2000):
self.setPWMuS(value)
# Translate for motor values
if(value > 0) and (value <= 255):