Просмотр исходного кода

Significantly increase gcode timeout

Tuan Nguyen 11 месяцев назад
Родитель
Сommit
128e5d6ae0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/connection/connection_manager.py

+ 1 - 1
modules/connection/connection_manager.py

@@ -224,7 +224,7 @@ def send_grbl_coordinates(x, y, speed=600, timeout=2, home=False):
     
     
     # Track overall attempt time
     # Track overall attempt time
     overall_start_time = time.time()
     overall_start_time = time.time()
-    max_total_attempt_time = 10 # Maximum total seconds to try
+    max_total_attempt_time = 120 # Maximum total seconds to try
     
     
     while time.time() - overall_start_time < max_total_attempt_time:
     while time.time() - overall_start_time < max_total_attempt_time:
         try:
         try: