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

Increase serial retry limits to 10 for better Pi 3B+ reliability

Raises both corruption and timeout retry limits from 3/2 to 10 to handle
persistent UART timing issues on Raspberry Pi 3B+.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris 1 неделя назад
Родитель
Сommit
115a62dd15
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      modules/core/pattern_manager.py

+ 2 - 2
modules/core/pattern_manager.py

@@ -542,8 +542,8 @@ class MotionControlThread:
         """
         gcode = f"$J=G91 G21 Y{y:.2f} F{speed}" if home else f"G1 X{x:.2f} Y{y:.2f} F{speed}"
         max_wait_time = 120  # Maximum seconds to wait for 'ok' response
-        max_corruption_retries = 3  # Max retries for corruption-type errors
-        max_timeout_retries = 2  # Max retries for timeout (lost 'ok' response)
+        max_corruption_retries = 10  # Max retries for corruption-type errors
+        max_timeout_retries = 10  # Max retries for timeout (lost 'ok' response)
         corruption_retry_count = 0
         timeout_retry_count = 0