Source

puma / mdc-telnet.py

Diff from to

mdc-telnet.py

 		if len(args) != 8:
 			return False
 		ms = int(args[1])
-		counts = MDC.get_counts()
-		for i in range(0,6):
-			if counts[i] == 'X':
-				continue
-			new_pos = int(args[i+2])
-			delta = int(counts[i]) - new_pos
-			if delta < 0:
-				delta = -delta
-			if ms != 0:
-				MDC.moveto(i+1, new_pos, delta * 1000 / ms)
-			else:
-				MDC.moveto(i+1, new_pos, 0)
+		dest = [int(x) for x in args[2:]]
+		MDC.move_all(ms, dest)
 		return True
 
 	def tx_loop(self):