瀏覽代碼

check idle before moving to perimeter

tuanchris 3 月之前
父節點
當前提交
8a9b75a61c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/connection/connection_manager.py

+ 1 - 0
modules/connection/connection_manager.py

@@ -471,6 +471,7 @@ def home(timeout=60):
                         loop = asyncio.new_event_loop()
                         asyncio.set_event_loop(loop)
                         try:
+                            await check_idle()
                             result = loop.run_until_complete(send_grbl_coordinates(state.machine_x, state.machine_y + 20, 400, home=False))
                             if result == False:
                                 logger.error("Failed to move to perimeter for angular homing")