move: minor correction to #1211

This commit is contained in:
alfrix committed 2023-12-23 11:35:51 -03:00
1 parent 727a6657ee
commit 37c0bde153
1 file changed
+1 -1
+1 -1
View File
@@ -19,7 +19,7 @@ class Panel(ScreenPanel):
dis = self.ks_printer_cfg.get("move_distances", '0.1, 0.5, 1, 50, 10, 25, 50')
if re.match(r'^[0-9,\.\s]+$', dis):
dis = [str(i.strip()) for i in dis.split(',')]
if 1 < len(dis) <= 7 and len(dis) >= 2:
if 1 < len(dis) <= 7:
self.distances = dis
self.distance = self.distances[-2]