Commits

Trammell Hudson committed 61a9620

Print if we are limited in speed

Comments (0)

Files changed (1)

 
 	def moveto(self, count, speed=0):
 		if speed is not None and speed != 0:
-			if speed > 30000:
-				speed = 30000
-			if speed < 100:
-				speed = 100
+			limited = ''
+			if speed > 40000:
+				speed = 40000
+				limited = ' !!!'
+			if speed < 10:
+				speed = 10
+				limited = ' !'
 			self.mdc.send("!S " + self.channel + " " + str(int(speed)))
-		print str(self.axis) + ": " + str(int(count)) + " @ " + str(int(speed))
+		print str(self.axis) + ": " + str(int(count)) + " @ " + str(int(speed)) + limited
 		self.mdc.send("!P " + self.channel + " " + str(int(count)))
 		commands[int(self.axis)] = count