|
|
@@ -63,9 +63,8 @@ class GRBLHandler:
|
|
|
finally:
|
|
|
self.controller_active.clear()
|
|
|
|
|
|
- async def wait_until_idle(self, timeout_s=None):
|
|
|
+ async def wait_until_idle(self, timeout_s):
|
|
|
"""Wait until GRBL reports idle status"""
|
|
|
- timeout_s = timeout_s or 50
|
|
|
if self.debug:
|
|
|
return
|
|
|
|
|
|
@@ -87,7 +86,7 @@ class GRBLHandler:
|
|
|
|
|
|
await asyncio.sleep(0.2) # Async delay to prevent flooding
|
|
|
|
|
|
- async def send_and_wait_gcode(self, commands: List[str], timeout_s=None):
|
|
|
+ async def send_and_wait_gcode(self, commands: List[str], timeout_s=60):
|
|
|
"""Send GCODE commands and wait until machine is idle"""
|
|
|
await self.send_gcode(commands)
|
|
|
await self.wait_until_idle(timeout_s)
|